Re: Unicode cheatsheet for Perl
[Posted February 28, 2012 by corbet]
From: |
| Karl Williamson <public-AT-khwilliamson.com> |
To: |
| Tom Christiansen <tchrist-AT-perl.com> |
Subject: |
| Re: Unicode cheatsheet for Perl |
Date: |
| Mon, 20 Feb 2012 12:40:04 -0700 |
Message-ID: |
| <4F42A194.10003@khwilliamson.com> |
Cc: |
| Perl5 Porters Mailing List <perl5-porters-AT-perl.org>,
Jarkko Hietaniemi <jhi-AT-iki.fi> |
On 02/20/2012 12:32 PM, Tom Christiansen wrote:
> Karl Williamson<public@khwilliamson.com> wrote
> on Mon, 20 Feb 2012 12:27:18 MST:
>
> Thanks for all that, Karl.
>
>>> =Declare std streams to be utf8
>
>> I hate to publicize this until :utf8 by default checks for
>> malformedness. I put this as a blocker to 5.16, but I suspect
>> I will be overruled.
>
> Are you saying tha t
>
> use warnings FATAL => "utf8";
>
> doesn't fix the ":utf8" ''bug''?
No, I'm not saying that, but I didn't see your cheat sheet mentioning
the addition of the FATAL, which I think it should before every use of :utf8
>
> I feel it a mistake to make people use the :encoding(UTF-8)
> style, amongst other reasons because then they lose all control
> over the three utf8 warning subcategories. We cannot do anything
> about the Encode module, and they do not keep up with Perl.
>
> Perl should certainly handle utf8 properly in all cases.
>
> --tom
>