develooper Front page | perl.perl5.porters | Postings from August 2021

Re: "use v5.36.0" should imply UTF-8 encoded source

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
August 2, 2021 15:05
Subject:
Re: "use v5.36.0" should imply UTF-8 encoded source
Message ID:
20210802170443.1c18f8b4@pc09
On Fri, 30 Jul 2021 10:45:53 -0400, "Ricardo Signes"
<perl.p5p@rjbs.manxome.org> wrote:

> Porters,
> 
> I propose that "use v5.36.0" should imply that the source code is,
> subsequently, UTF-8 encoded.

+1

But the docs and release notes should very clearly state that this is
about the source code itself, as I see many discussions rambling about
the data handling being changed, which is not the case.

> Currently, I advise the following boilerplate:
> use v5.34.0;
> use warnings;
> use utf8;
> 
> We're on the cusp or merging warnings in.  Next, we merge in utf8.
> This shouldn't break existing programs, only programs that opt to
> change behavior by adding v5.36.0.
> 
> With that, the boilerplate could be:
> use v5.36.0;
> 
> This doesn't need to load utf8.pm, and could just alter $^H, but:
> whatever.

-- 
H.Merijn Brand  https://tux.nl   Perl Monger   http://amsterdam.pm.org/
using perl5.00307 .. 5.33        porting perl5 on HP-UX, AIX, and Linux
https://tux.nl/email.html http://qa.perl.org https://www.test-smoke.org
                           

Thread Previous | Thread Next


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