develooper Front page | perl.perl5.porters | Postings from February 2012

Re: Unicode cheatsheet for Perl

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
February 21, 2012 00:44
Subject:
Re: Unicode cheatsheet for Perl
Message ID:
CAHhgV8jtcSimXcrHJSA=Zy-GDByZ9rva8DzHxaLm0tQNu1jx=Q@mail.gmail.com
On Tue, Feb 21, 2012 at 12:58 AM, Tom Christiansen <tchrist@perl.com> wrote:
> Why does it take a new layer?  Why not just make the things
> that get fatalized by
>
>    use warnings FATAL => "utf8";
>
> fatal without saying that?

I'm not entirely sure what gets fixed by that and what doesn't, it
isn't documented at all. Looking at the source makes me feel it's a
hack IMO, and I strongly suspect it is not quite a complete fix: there
are just too many places that would need to get fixed. I believe the
utf8 layer would be the right place to do it because that's the only
place that almost all Input passes through. Fixing it there fixes it
almost everywhere (except sysread I suppose, but that can be fixed
too).

Leon

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