From: Pit Capitain Date: 2005-10-26T16:40:32+09:00 Subject: Re: Byte order reading on windows versus unix in ruby Sean O'Halpin schrieb: > 'Non-binary' mode (or 'text mode') comes from the underlying C > library. It's part of ANSI C and is what makes C and Ruby on Windows > work like C and Ruby on Unix for all text file processing out of the > box. It turns those horrible CRLFs (\r\n) into nice LFs (\n) only so > programmers see a uniform interface. YMMV but I do a heck of a lot > more text file processing than binary file processing in Ruby and my > (admittedly non-scientific) hunch is that most Ruby users on both Unix > and Windows do the same (e.g. Rails). > > Would you want to have to set textmode on to make all your text > processing scripts portable? Yikes! But as I said, YMMV. Thanks for your input, Sean. I answered the other thread. Regards, Pit