Re: Remaining dependency on setlocale()
От | Jeff Davis |
---|---|
Тема | Re: Remaining dependency on setlocale() |
Дата | |
Msg-id | 25603d10e678ec2ba1d67569c985fcfacc6e96c3.camel@j-davis.com обсуждение исходный текст |
Ответ на | Re: Remaining dependency on setlocale() (Peter Eisentraut <peter@eisentraut.org>) |
Ответы |
Re: Remaining dependency on setlocale()
|
Список | pgsql-hackers |
On Tue, 2024-12-17 at 13:14 +0100, Peter Eisentraut wrote: > I think we will need to keep the global LC_CTYPE setting set to > something useful, for example so that system error messages come out > in > the right encoding. Do we need to rely on the global LC_CTYPE setting? We already use bind_textdomain_codeset(). > But I'm concerned about the the Perl_setlocale() dance in plperl.c. > Perl apparently does a setlocale(LC_ALL, "") during startup, and that > code is a workaround to reset everything back afterwards. We need to > be > careful not to break that. > > (Perl has fixed that in 5.19, but the fix requires that you set > another > environment variable before launching Perl, which you can't do in a > threaded system, so we'd probably need another fix eventually. See > <https://github.com/Perl/perl5/issues/8274>.) I don't fully understand that issue, but I would think the direction we are going (keeping the global LC_CTYPE more consistent and relying on it less) would make the problem better. Regards, Jeff Davis
В списке pgsql-hackers по дате отправления: