This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: is_locale_utf8(): C locale cant be UTF-8
authorKarl Williamson <khw@cpan.org>
Mon, 11 Dec 2023 01:12:58 +0000 (18:12 -0700)
committerKarl Williamson <khw@cpan.org>
Mon, 11 Dec 2023 01:25:50 +0000 (18:25 -0700)
commitbcfbc752d2ef2b19d6d8270af90951afc8ab52e0
tree07d677be8a57284fd8ae34a40e9145a0a7f44661
parenta30e55d5c5b644214a57fe771d4a557f5c5bd584
locale.c: is_locale_utf8(): C locale cant be UTF-8

This adds a quick check to rule out "C" and "POSIX" as being possible UTF-8 locales. This shortcuts the more expensive checking needed for non-trivial cases.
locale.c