Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: e622e0481be0f2f9c90b85d58a1395bf8945aad8
      
https://github.com/Perl/perl5/commit/e622e0481be0f2f9c90b85d58a1395bf8945aad8
  Author: Karl Williamson <k...@cpan.org>
  Date:   2023-12-20 (Wed, 20 Dec 2023)

  Changed paths:
    M hints/openbsd.sh

  Log Message:
  -----------
  hints/openbsd: All categories but LC_CTYPE are C only

OpenBSD has a deliberately crippled locale system.  The documented
reason is trading this capability for extra security.  As a result, all
locale categories except LC_CTYPE are kept in the C locale, and libc
ignores all attempts to change them.

Perl can be configured to ignore any attempts to change any particular
category.  Doing this results in the more generalized code paths not
getting compiled, so what remains is smaller and runs faster.  This
commit does that for this platform.


  Commit: cfbcdce7a695b2a68e6c005d2f63a05861927555
      
https://github.com/Perl/perl5/commit/cfbcdce7a695b2a68e6c005d2f63a05861927555
  Author: Karl Williamson <k...@cpan.org>
  Date:   2023-12-20 (Wed, 20 Dec 2023)

  Changed paths:
    M hints/openbsd.sh

  Log Message:
  -----------
  OpenBSD properly handles mismatched LC_CTYPE

Perl has code that is conditionally compiled for platforms that have
trouble when LC_CTYPE doesn't match LC_TIME, for example, leading to
mojibake.

Some platforms handles this properly without perl having to deal with
it, and on those, the code is not compiled.

OpenBSD is such a platform, though it's because LC_TIME and all the
other categories only return ASCII, which is compatible with the two
possible LC_CTYPE locales, "C" and "C.UTF-8".

Might as well not compile the more general handling.


Compare: https://github.com/Perl/perl5/compare/3dd0f012b8ee...cfbcdce7a695

Reply via email to