Project

General

Profile

Actions

Bug #4732

closed

mingw no longer writes files with "\r\n" by default, presumably unexpectedly

Added by rogerdpack (Roger Pack) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-05-18 trunk 31614) [i386-mingw32]
Backport:
[ruby-core:36317]

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!

Actions

Also available in: Atom PDF

Like0
Like0