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:
Dan Book
Date:
August 2, 2021 15:29
Subject:
Re: "use v5.36.0" should imply UTF-8 encoded source
Message ID:
CABMkAVVriQ3LG+_wwqZG4wh2Ftpq9c2gNH6QEcnpJihL3XDD4w@mail.gmail.com
On Mon, Aug 2, 2021 at 11:17 AM Veesh Goldman <rabbiveesh@gmail.com> wrote:

>
>
>>
>> My point is still that this:
>>
>> -----
>> use v5.36;
>> print 'Hello, world!';
>> -----
>>
>> … should not be “subtly wrong”.
>>
>> -F
>
>
> Since 5.36 is meant to turn on warnings, this will be explicitly wrong,
> not subtly.
>
> Perhaps the "wide character" warning is too unclear, but we can always
> improve the text to include a doc link as such.
>

This is not always the case; the wide character warning only catches
strings with codepoints over 255 as they unambiguously cannot be byte
strings. Strings with non-ascii characters 255 and under get blindly
printed, effectively as ISO-8859-1.

-Dan

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