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 #1

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

Also available in: Atom PDF

Like0
Like0