RE: encoding(UTF16-LE) on Windows

2011-01-21 Thread Erland Sommarskog
Jan Dubois (j...@activestate.com) writes: Now when you print a string to the filehandle, then it will be passed to the top-most layer first (:crlf), which will s/\n/\r\n/g on the string, and then passes it on to the next lower layer :encoding, which will do the encoding, and when it reaches

RE: encoding(UTF16-LE) on Windows

2011-01-21 Thread Jan Dubois
On Fri, 21 Jan 2011, Erland Sommarskog wrote: There is still one thing that is not clear to me. The incorrect end-of-line was 0D 00 0A But the way you describe it, I would expect it to be 0D 0A 00 I went back to the very first message in the thread, where you write: | When I

RE: encoding(UTF16-LE) on Windows

2011-01-21 Thread Jan Dubois
I wrote: I saw some discussion today that the :raw pseudo-layer in the open() call will also remove the buffering layer (it doesn’t do that when you use it in a binmode() call). I’ll try to remember to send a followup once I actually understand what is going on. That seems indeed to be the