Branch: refs/heads/smoke-me/khw-batch9
  Home:   https://github.com/Perl/perl5
  Commit: b19f01bf014b01b4fb3bf709e6d66c4af60cfcf2
      
https://github.com/Perl/perl5/commit/b19f01bf014b01b4fb3bf709e6d66c4af60cfcf2
  Author: Karl Williamson <k...@cpan.org>
  Date:   2024-05-24 (Fri, 24 May 2024)

  Changed paths:
    M locale.c
    M t/run/locale.t

  Log Message:
  -----------
  S_find_locale_from_environment: Handle disparate LC_ALL

When calling setlocale(foo, ""), there is a standardized result.  If
there is an environment variable LC_ALL set, it is used regardless of
what 'foo' is.

In general, LC_ALL may be set to a heterogenous set of categories and
locales, so this could be equivalently

 setlocale(LC_TIME, "de_DE/C/en_US/zh_TW.UTF-8/he_IL");

Prior to this commit, the code did not handle this possibility.  But
it's easy to handle this eventuality by calling an already-existing
function and examining its return.

However, the accompanying test fails at least on Linux, showing that
libc also doesn't handle this possibility.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to