From: Alan Davies Date: 2003-05-21T22:37:17+09:00 Subject: Re: Bug in IO#write under windows In article <1053463150.2575.9.camel@tom.felker.net>, tcfelker@mtco.com says... > By all means, but it's a bug in Windows, not Ruby. I was about to disagree with you because I thought that the C runtime did not have this problem but is seems that it does indeed do the same thing... "The fwrite function writes up to count items, of size length each, from buffer to the output stream. The file pointer associated with stream (if there is one) is incremented by the number of bytes actually written. If stream is opened in text mode, each carriage return is replaced with a carriage-return � linefeed pair. The replacement has no effect on the return value." I have to agree that this is one of the more ridiculous "features" of DOS/Windows. Its very legacy and there is no need for it any more, but I suppose that if they got rid of it, lots of stuff would break.