Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: c2f1b40217a871eef84004606e02345a46f0bb08
      
https://github.com/Perl/perl5/commit/c2f1b40217a871eef84004606e02345a46f0bb08
  Author: Karl Williamson <k...@cpan.org>
  Date:   2024-02-06 (Tue, 06 Feb 2024)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  locale.c: Make sure UTF-8 flag is off on a scalar

The contents of this scalar at this moment are the name of a code set,
such as CP1252, UTF-8, 8859-1, etc.  I believe all such names contain
just ASCII characters.

I finally got around to checking if the sv_setpvf() functions clear the
UTF-8 flag.  They don't.  GH #21921 adds documentation to that effect.

One of those functions was used to populate this SV.  Since the result
is ASCII, the UTF-8 flag is immaterial except for performance.  Prior to
this commit, it retained its previous value, but its better practice
(and can speed things up a bit) to turn it off for ASCII content.


Reply via email to