From: KOSAKI Motohiro Date: 2011-05-18T16:10:10+09:00 Subject: [ruby-core:36306] Re: \r\n not possible in 1.9.3 on windows anymore? 2011/5/18 Roger Pack : > Hello all. > > Noticed the following. > > $ cat test.rb > File.open('yo', 'w') do |f| > �f.write "a\nb" > end > p File.binread('yo') > > With 1.9.2, doze, works as I would expect it to: > > $ ruby -v test.rb > ruby 1.9.2p180 (2011-02-18) [i386-mingw32] > 4 > "a\r\nb" > > With 1.9.3, doze: > > $ ruby -v test.rb > ruby 1.9.3dev (2011-05-18 trunk 31614) [i386-mingw32] > 3 > "a\nb" > > Anybody know what's going on here? I believe it's bug. There is no reason *bin*read convert line separator. Can you please create new redmine ticket?