Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TZZjt-0007y6-Ie for pgsql-bugs@postgresql.org; Sat, 17 Nov 2012 04:10:41 +0000 Received: from [222.73.24.84] (helo=song.cn.fujitsu.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TZZjp-0007BC-6X for pgsql-bugs@postgresql.org; Sat, 17 Nov 2012 04:10:40 +0000 X-IronPort-AV: E=Sophos;i="4.83,268,1352044800"; d="scan'208";a="6218174" Received: from unknown (HELO tang.cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 17 Nov 2012 12:08:45 +0800 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id qAH4AP22026798; Sat, 17 Nov 2012 12:10:25 +0800 Received: from [127.0.0.1] ([10.167.159.99]) by fnstmail02.fnst.cn.fujitsu.com (Lotus Domino Release 8.5.3) with ESMTP id 2012111712101669-1215967 ; Sat, 17 Nov 2012 12:10:16 +0800 Message-ID: <50A70DEB.1050707@cn.fujitsu.com> Date: Sat, 17 Nov 2012 12:09:15 +0800 From: Chen Huajun User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.28) Gecko/20120306 Lightning/1.0b2 Thunderbird/3.1.20 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7664: Program using libpq and ecpglib can not output native language References: <4803.1353043336@sss.pgh.pa.us> <50A5F30A.60405@cn.fujitsu.com> <14538.1353078791@sss.pgh.pa.us> In-Reply-To: <14538.1353078791@sss.pgh.pa.us> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2012/11/17 12:10:16, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2012/11/17 12:10:17, Serialize complete at 2012/11/17 12:10:17 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-2022-JP X-Host-Lookup-Failed: Reverse DNS lookup failed for 222.73.24.84 (failed) X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201211/99 X-Sequence-Number: 34657 > 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