* 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8f655293ed
commit
11de7c034b
@ -1,3 +1,10 @@
|
|||||||
|
Sat Jan 28 07:28:48 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
|
||||||
|
|
||||||
|
* 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 <nobu@ruby-lang.org>
|
Sat Jan 28 05:53:34 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/irb/completion.rb (IRB::InputCompletor::CompletionProc):
|
* lib/irb/completion.rb (IRB::InputCompletor::CompletionProc):
|
||||||
|
@ -691,6 +691,7 @@ if defined? Zlib
|
|||||||
t.close
|
t.close
|
||||||
Zlib::GzipWriter.open(t.path) {|gz| gz.print("foo") }
|
Zlib::GzipWriter.open(t.path) {|gz| gz.print("foo") }
|
||||||
f = open(t.path)
|
f = open(t.path)
|
||||||
|
f.binmode
|
||||||
assert_equal("foo", Zlib::GzipReader.wrap(f) {|gz| gz.read })
|
assert_equal("foo", Zlib::GzipReader.wrap(f) {|gz| gz.read })
|
||||||
assert_raise(IOError) { f.close }
|
assert_raise(IOError) { f.close }
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user