Re: BUG #7664: Program using libpq and ecpglib can not output native language - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #7664: Program using libpq and ecpglib can not output native language
Date
Msg-id 14538.1353078791@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #7664: Program using libpq and ecpglib can not output native language  (Chen Huajun <chenhj@cn.fujitsu.com>)
Responses Re: BUG #7664: Program using libpq and ecpglib can not output native language
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Euler Taveira
Date:
Subject: Re: BUG #7663: is not a bug but...
Next
From: Morten Minde Neergaard
Date:
Subject: Re: BUG #7651: Superfluous calls to functions used for indexing