From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chen Huajun <chenhj@cn.fujitsu.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7664: Program using libpq and ecpglib can not output native language
Date: Fri, 16 Nov 2012 10:13:11 -0500
Message-ID: <14538.1353078791@sss.pgh.pa.us> (raw)
In-Reply-To: <50A5F30A.60405@cn.fujitsu.com>
References: <E1TZCv4-0002iN-H0@wrigleys.postgresql.org>
<4803.1353043336@sss.pgh.pa.us>
<50A5F30A.60405@cn.fujitsu.com>
Chen Huajun <chenhj@cn.fujitsu.com> writes:
> First,does you agree with the need of native language support without writin
> "setlocale(LC_ALL, "")"in user's program is rational?
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.
regards, tom lane
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: tgl@sss.pgh.pa.us, chenhj@cn.fujitsu.com
Subject: Re: BUG #7664: Program using libpq and ecpglib can not output native language
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>
* 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