From: eregontp@... Date: 2016-05-29T11:28:48+00:00 Subject: [ruby-core:75767] [Ruby trunk Bug#12436] newline argument of File.open seems not respected on Windows Issue #12436 has been reported by Benoit Daloze. ---------------------------------------- Bug #12436: newline argument of File.open seems not respected on Windows https://bugs.ruby-lang.org/issues/12436 * Author: Benoit Daloze * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- ~~~ruby File.open("abc", "wt", newline: :lf) { |f| f.write "a\n" f.puts "b" } ~~~ will create a file with CRLF newlines, ignoring the newline conversion argument. It should write only LF instead, like on other platforms when the newline conversion is specified. -- https://bugs.ruby-lang.org/ Unsubscribe: