Skip to content

Commit 1582ce7

Browse files
committed
Compressed files must be opened in binary mode
1 parent 36a7e8e commit 1582ce7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/stdlib/zlib/GzipReader_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_wrap
2929
path = File.join(tmpdir, "test.gz")
3030
Zlib::GzipWriter.open(path) { _1.puts "hello" }
3131

32-
File.open(path) do |io|
32+
File.open(path, "rb") do |io|
3333
assert_send_type "(IO io) -> Zlib::GzipReader",
3434
Zlib::GzipReader, :wrap, io
3535

0 commit comments

Comments
 (0)