This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Experimentally enable glibc undocumented querylocale()
authorKarl Williamson <khw@cpan.org>
Mon, 30 Oct 2023 17:37:24 +0000 (11:37 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 17 Nov 2023 01:58:33 +0000 (18:58 -0700)
commit2ba88c8c7f1c33fe9f3145cbd2c4de3b1668efe9
tree4a3d6c1a67853e815eb5a55a8fcd9cce7c6997e0
parentae3e9dd0b31e37357f00d0a83f0b3f4a2713f420
Experimentally enable glibc undocumented querylocale()

This is querylocale() by another name, and is undocumented, hence we
haven't enabled it by default.  But it seems to work fine.  In order to
gain wider experience in using it, it is here default-enabled through
5.39.9 (unless we decide to end the experiment earlier), at which point
a compilation error will remind us to decide to keep it or take it out.

I put the check in locale.c instead of the more obvious perl.h, because
the definition would come earlier in perl.h than the PERL_VERSION macros
are defined, and I don't think its worth moving things around for just a
potential of a few releases.
locale.c
perl.h
pod/perldelta.pod