Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tempfile#open on windows unconditionally opens in "b" mode messing CRLF logic (--1.9) #3727
jruby 1.7.25-SNAPSHOT (1.9.3p551) 2016-03-09 fed46bd on Java HotSpot(TM) 64-Bit Server VM 1.8.0_74-b02 +jit [Windows 7-amd64]
(works as expected on 9k)
require 'tempfile' f = Tempfile.new("test-truncate") f.puts "abc" f.puts "def" f.close f.open f.gets # should == "abc\n"
It will f.gets will equal "abc\r\n".
This occurs multiple times in MRI test suite so I am confident this will get coverage but I will try and remember to add a spec if it is not adequately covered in ruby/spec.