Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TZNbf-0002RK-BY for pgsql-bugs@postgresql.org; Fri, 16 Nov 2012 15:13:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TZNbc-0000Ha-MX for pgsql-bugs@postgresql.org; Fri, 16 Nov 2012 15:13:21 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qAGFDB7S014539; Fri, 16 Nov 2012 10:13:12 -0500 (EST) From: Tom Lane To: Chen Huajun cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7664: Program using libpq and ecpglib can not output native language In-reply-to: <50A5F30A.60405@cn.fujitsu.com> References: <4803.1353043336@sss.pgh.pa.us> <50A5F30A.60405@cn.fujitsu.com> Comments: In-reply-to Chen Huajun message dated "Fri, 16 Nov 2012 16:02:18 +0800" Date: Fri, 16 Nov 2012 10:13:11 -0500 Message-ID: <14538.1353078791@sss.pgh.pa.us> X-Pg-Spam-Score: -2.0 (--) X-Archive-Number: 201211/93 X-Sequence-Number: 34651 Chen Huajun 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