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

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

Thread Previous | Thread Next
From:
Yuki Kimoto
Date:
July 31, 2021 06:16
Subject:
Re: "use v5.36.0" should imply UTF-8 encoded source
Message ID:
CAExogxNHZRaDY-toZihSZ=hgomvg+P3997NgwCk=7_Ajd+HSxw@mail.gmail.com
2021-7-30 23:46 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.
>
> 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.
>
> --
> rjbs
>

 At least after v5.38+.

It is good to change one by one.

I want to see the effect and hear the user experience of "use warnings" in
the next release.


My intuition is that there is a lot of code that hasn't been UTF-8 yet.

Over the next year or two, we should send messages to end users a lot about
using "use utf8" and writing source code in UTF-8.

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