Actions
Bug #4732
closedmingw no longer writes files with "\r\n" by default, presumably unexpectedly
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-05-18 trunk 31614) [i386-mingw32]
Backport:
Description
As reported
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/36284
File.open('yo', 'w') do |f|
f.write "a\nb"
end
in 1.9.2 writes out "a\r\nb" but 1.9.3 writes out "a\nb" presumably unexpectedly.
Cheers!
Updated by nobu (Nobuyoshi Nakada) almost 13 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r31748.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- io.c (validate_enc_binmode): do not clear textmode flag if
default. fixed #4732
Actions
Like0
Like0