This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Properly return LC_ALL locale names
authorKarl Williamson <khw@cpan.org>
Fri, 23 Feb 2018 18:13:09 +0000 (11:13 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 25 Feb 2018 05:08:41 +0000 (22:08 -0700)
commit7c93a4714664dfc1aed62ada328290af9eba350a
treede68d7a4e4f2f0b1bd8525a079e762b43efa4d91
parent84f1d29fb1049df3954d8a72eb6066b0938dd5cb
locale.c: Properly return LC_ALL locale names

On systems using POSIX 2008 functions that don't have querylocale(),
perl has to keep track of the locale names currently in effect.  There
was code to invalidate LC_ALL as a single name if one or more of its
components aren't all the same.  But omitted was code to re-validate it
when they later do become the same.  This commit adds that omitted code.
locale.c