Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 418efacd1950763f74ed3cc22f8cf9206661b892 https://github.com/Perl/perl5/commit/418efacd1950763f74ed3cc22f8cf9206661b892 Author: Karl Williamson <k...@cpan.org> Date: 2023-07-10 (Mon, 10 Jul 2023)
Changed paths: M locale.c Log Message: ----------- locale.c: Work around a Win32 bug in localeconv() If the locale for an individual category is set, and then the locale for LC_CTYPE is set afterwards, it trashes (at least partially), the first category's setting for the purposes of localeconv(). This can happen even if LC_CTYPE is the same locale as that of the other category. This commit implements a workaround for that, where LC_CTYPE is set, then the other cateorgy's locale is switched to C, then to whatever is should be. The problem doesn't seem to happen if the destination locale is C. I have a short C-language reproducer program that doesn't involve Perl, but I haven't submitted it to Microsoft due to my cynicism about them patying any attention to it.