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

Re: Future Perl development

From:
Dr.Ruud
Date:
February 4, 2007 16:03
Subject:
Re: Future Perl development
Message ID:
20070205000253.15710.qmail@lists.develooper.com
Gerard Goossen schreef:

> If we make \x{?..}? really insert codepoints, and not sometimes
> bytes, we need an escape sequence for bytes.

That is thinking the wrong way around, because it should only depend on
the encoding at hand. And the encoding of the source file does not have
to be equal to the encoding of the referenced data, for example a file
that is written to. So if the source file is in UTF-8 and the data is in
Latin-1, then an "Ä" will be built from multiple bytes for the source
file but be only a single byte in the data.

-- 
Affijn, Ruud

"Gewoon is een tijger."




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About