Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 0b52bb633d8c55bb15f05cdb19a4b7cb071ea271 https://github.com/Perl/perl5/commit/0b52bb633d8c55bb15f05cdb19a4b7cb071ea271 Author: Karl Williamson <k...@cpan.org> Date: 2024-01-15 (Mon, 15 Jan 2024)
Changed paths: M embed.fnc M embed.h M locale.c M proto.h Log Message: ----------- Return C values if localeconv() not available localeconv() is a C89 function. But the existing code handled the case if it isn't available anyway by returning an empty hash if POSIX::localeconv() is called. Prior commits have made it actually easier to instead return the hash populated with the values that the C locale has, which is more desirable than the current state. And that is what this commit does. There are reasons that localeconv() might not be available. We recently had a case where Configure didn't catch its existence. And it still is broken on MingW, and until recently on older Windows releases that we now no longer support. Workarounds were developed for those cases, but there may be other platforms where it ends up broken without a workaround, and this code handles them better and more simply than before this commit.