Re: Assume CP1252

[email protected] ("David E. Wheeler") Tue, 13 Jan 2015 10:49:12 -0800
Newsgroups perl.pod-people
Message-ID <[email protected]>
On Jan 13, 2015, at 10:31 AM, Karl Williamson <[email protected]> wrote:

> What Perl does to handle this is to simple swap the NEL and LF code points.  That makes \n mean NEL instead of LF.  Apparently LF is unused in EBCDIC applications, so it works.  There is official support for this swap, as Unicode's definition of how to get UTF-8 to work on EBCDIC platforms says to do the swap.

Huh. Good to know (and have it documented now!).

> It does mean that NL doesn't mean the character that a native EBCDIC speaker would think.
> 
> But the bottom line is that because of this character swapping, the NEL characters in EBCDIC appear as \n, so aren't a problem for CP1252.

Nice. So should we then adopt the same pattern as the HTML 5 spec?

And I wonder if that W3 spec issue you pointed to the other day could use a comment to this effect.

Best,

David
smime.p7s (application/pkcs7-signature, 4 KB) - not displayed