Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: PerlIO: crlf layer on Windows interfering with UCS-2 unicode

by ikegami (Pope)
on May 19, 2008 at 22:56 UTC ( #687488=note: print w/replies, xml ) Need Help??


in reply to PerlIO: crlf layer on Windows interfering with UCS-2 unicode

Great post. I ++ed it when you originally posted it. I would just like to clarify one statement.

Any encoding with a minimal character size of more than one byte (like UTF-16, UTF-32) should pose similar problems.

That's not a sufficient condition. For example, the layer order should interfere with EBCDIC-based encodings, even if each character maps to a single byte.

The following encodings should be negatively affected by the default layer order:

  • Encodings which map LF to something other than 0A.
  • Encodings which map CR to something other than 0D.
  • Encodings which map any character other than LF and CR to a sequence of bytes that contains 0A or 0D.
  • Comment on Re: PerlIO: crlf layer on Windows interfering with UCS-2 unicode

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://687488]
help
Chatterbox?
[Corion]: I think I saw virtualsue more recently in person than online :-D
[virtualsue]: It's true that there was a bigger gap between the 2 yr old post and the one before it
[ambrus]: yes, I probably just didn't see you two years ago, because I'm not in perlmonks much
[virtualsue]: Nor am I :-)
[talexb]: virtualsue Heh .. long time no see! :)
[virtualsue]: I have a quiet Perl themed slack workspace
[virtualsue]: The person who talks to me on it the most *hates* Perl but she hates everything

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-09-26 13:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (295 votes). Check out past polls.

    Notices?