in reply to Re^2: Creating Unix Friendly files in win32
in thread Creating Unix Friendly files in win32

Ugh. No. \n and binmode works just fine. But \x0A gets converted to \x0D\x0A if binmode is not present.

That's a pitfall and I must have mixed it up in my memory.


holli, /regexed monk/

Replies are listed 'Best First'.
Re^4: Creating Unix Friendly files in win32
by thor (Priest) on Sep 26, 2005 at 11:38 UTC
    But \x0A gets converted to \x0D\x0A if binmode is not present.
    Seriously? By who? I'm not doubting you (as I have no Windows machine handy to test it out on), but that seems a little odd...

    thor

    Feel the white light, the light within
    Be your own disciple, fan the sparks of will
    For all of us waiting, your kingdom will come