develooper Front page | perl.perl5.porters | Postings from March 2014

Re: Perl 5.20.0 Blockers, 2014-03-24

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
March 25, 2014 18:00
Subject:
Re: Perl 5.20.0 Blockers, 2014-03-24
Message ID:
CAHhgV8g3cLysxSFovD+bNN784WriaV0V8U5V43zXZwrCj2OYxg@mail.gmail.com
On Tue, Mar 25, 2014 at 4:08 AM, Craig A. Berry <craig.a.berry@gmail.com>wrote:

> > As for the CRLF issue, perlbug should probably detect whether :crlf is
> > a default layer and handle it appropriately.
>
> Does the :crlf layer even work with Unicode?  Some people seem to
> think it doesn't (e.g.,
> <
> http://stackoverflow.com/questions/3320189/crlf-translation-with-unicode-in-perl
> >)
> but I don't know enough to evaluate.  If it can be made to work so
> that Unicode handling is not lost, I'm ok with supporting CRLF line
> endings, but it's really a bug in Notepad and not in Perl


Yes, it does since 5.14. Older releases have a serious bug where
:raw:encoding:crlf could mean :crlf:encoding, which will give garbage on
encodings like UTF-16.

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