develooper Front page | perl.perl5.changes | Postings from December 2023

[Perl/perl5] bcfbc7: locale.c: is_locale_utf8(): C locale cant beUTF-8

From:
Karl Williamson via perl5-changes
Date:
December 11, 2023 01:26
Subject:
[Perl/perl5] bcfbc7: locale.c: is_locale_utf8(): C locale cant beUTF-8
Message ID:
Perl/perl5/push/refs/heads/blead/a30e55-bcfbc7@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: bcfbc752d2ef2b19d6d8270af90951afc8ab52e0
      https://github.com/Perl/perl5/commit/bcfbc752d2ef2b19d6d8270af90951afc8ab52e0
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-12-10 (Sun, 10 Dec 2023)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  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.





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About