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



Reply via email to