in reply to New line in Unicode again

Did you remember to use binmode() on your output file stream?

If you need to specify specific bytes for specific characters on specific platforms, don't rely on "\r" and "\n", which are semantic concepts. Try the octal route to call a spade a spade: "\015\012".

I thought Notepad relied on "\015\012" sequences for hard newlines, and used "\015\015\012" internally for word-wraps. This may have changed. Open up an existing file in a hex editor to glean the right sequence.

--
[ e d @ h a l l e y . c c ]