pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chen Huajun <chenhj@cn.fujitsu.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7664: Program using libpq and ecpglib can not output native language
Date: Sat, 17 Nov 2012 12:09:15 +0800
Message-ID: <50A70DEB.1050707@cn.fujitsu.com> (raw)
In-Reply-To: <14538.1353078791@sss.pgh.pa.us>
References: <E1TZCv4-0002iN-H0@wrigleys.postgresql.org>
	<4803.1353043336@sss.pgh.pa.us>
	<50A5F30A.60405@cn.fujitsu.com>
	<14538.1353078791@sss.pgh.pa.us>

> No, not particularly.  The C language standard is quite clear about
> that.  Nor does it seem like a particularly great idea from a user's
> standpoint for different sub-parts of a program to be operating in
> different locales.  Even if I agreed with the concept, your idea of
> switching locale constantly is likely to be horrid from a performance
> standpoint.

I just don't known way the default locale is "C" but not the value
 Set by Environment Variables in Linux. Maybe this is The C language standard.
And may be this is a general knowledge known by most of people except for
 a few (just like me ).
If someone does not know that,it's not too easy to solve it by him self.
Whether it's better to do something
 to make using native language of libpq more easy?
Even if write something in document.

By the way, from a performance standpoint normally native language only needed for
error message outputing where I think performance is not so important.



Regards
chen huajun





view thread (5+ messages)

Message-ID: <50A70DEB.1050707@cn.fujitsu.com>
Permalink:  ../50A70DEB.1050707@cn.fujitsu.com/
Also on:    postgresql.org/message-id/50A70DEB.1050707@cn.fujitsu.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: chenhj@cn.fujitsu.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #7664: Program using libpq and ecpglib can not output native language
  In-Reply-To: <50A70DEB.1050707@cn.fujitsu.com>
  References: <E1TZCv4-0002iN-H0@wrigleys.postgresql.org> <4803.1353043336@sss.pgh.pa.us> <50A5F30A.60405@cn.fujitsu.com> <14538.1353078791@sss.pgh.pa.us> <50A70DEB.1050707@cn.fujitsu.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox