Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://687488]
[marioroy]: Naming things can be difficult, sometimes more so that the actual code :)
[karlgoethebier]: Lady_Aleena: You need to jump to some conclusion
[Lady_Aleena]: And what would I rename RolePlaying/Random .pm to if I move all the RolePlaying/Random modules to just Random? Random/ Random/, maybe lowercase the file name to indicate it is a bit different? I don't know yet.
[marioroy]: What does Random do?
[karlgoethebier]: https://www. v=42WNHGr1jGI
[Lady_Aleena]: karlgoethebeir, I finished another project tonight, making a module which printed stop printing. It was a headache and a half.
[karlgoethebier]: Lady_Aleena: Try it!
[Lady_Aleena]: marioroy, it has 3 subroutines which can be fed data to generate random things. See here.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-05-29 09:02 GMT
Find Nodes?
    Voting Booth?