This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: toggling locales is a no-op if no locales
authorKarl Williamson <khw@cpan.org>
Wed, 27 Dec 2023 19:06:26 +0000 (12:06 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 3 Jan 2024 04:05:17 +0000 (21:05 -0700)
commit4f3785661c86751b74bdb1c94d0963829aa9a5b7
treefed65d0396f6881751b1d33b8c3b7d4e2dac7ef5
parente0748e831ac8161a2a2e1c67162330c025ddb2e7
locale.c: toggling locales is a no-op if no locales

When the only legal locale is C, toggling to another locale doesn't make
sense.  By #defining the macro that implements toggling this to do
nothing in this case, we can avoid some #ifdefs
locale.c