diff --git a/ChangeLog b/ChangeLog index 658708f718..3f3b009d5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sat Jan 28 07:28:48 2012 Hiroshi Shirosaki + + * test/zlib/test_zlib.rb (TestZlibGzipReader#test_reader_wrap): set + binmode explicitly for fixing test error on Windows. This is consistent + with r34243. + [ruby-dev:45149] [Bug #5812] + Sat Jan 28 05:53:34 2012 Nobuyoshi Nakada * lib/irb/completion.rb (IRB::InputCompletor::CompletionProc): diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 4149c8aa8e..8c2fbde8d9 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -691,6 +691,7 @@ if defined? Zlib t.close Zlib::GzipWriter.open(t.path) {|gz| gz.print("foo") } f = open(t.path) + f.binmode assert_equal("foo", Zlib::GzipReader.wrap(f) {|gz| gz.read }) assert_raise(IOError) { f.close } end