From: Marc-Andre Lafortune Date: 2009-08-05T05:49:41+09:00 Subject: [ruby-core:24763] Re: Is this a bug? For what it's worth, the current head produces the expected "line1\r\nline22" on OS X. If the current version still outputs two \n on windows, that looks like a bug to me (although I'm not familiar with the particuliarities of text mode vs binary mode on windows) On Sat, Aug 1, 2009 at 9:37 AM, Roger Pack wrote: > With this code: > > File.open('test.rb', 'w') do |f| f.write "line1\r\nline22"; end > puts ( File.read('test.rb').inspect) > > > �== Running with ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32] == > "line1\r\nline22" > > �== Running with ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32] == > "line1\n\nline22" > > [different output] > or expected. > I assume bug? > Thanks! > =r > >