<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/zlib, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Merge zlib-3.1.2</title>
<updated>2026-03-10T06:58:44+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2026-03-09T07:46:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=513ee91b3886724f8d73482c69a08f6ff7f03c3d'/>
<id>513ee91b3886724f8d73482c69a08f6ff7f03c3d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) 9f8f32bf9f3758ba67dd2afe7e07d9eccb68bbc7: [Backport #20289]</title>
<updated>2024-05-29T18:35:23+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2024-05-29T18:35:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2ae6df6d03c6d9750be559641c4c9f3b39eac62d'/>
<id>2ae6df6d03c6d9750be559641c4c9f3b39eac62d</id>
<content type='text'>
	[ruby/zlib] In Zlib::GzipReader#eof? check if we're actually at eof

	Only consider it eof if we read ahead and something fills the buf.
	If not, we may only have empty blocks and the footer.

	Fixes https://github.com/ruby/zlib/pull/56

	https://github.com/ruby/zlib/commit/437bea8003
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[ruby/zlib] In Zlib::GzipReader#eof? check if we're actually at eof

	Only consider it eof if we read ahead and something fills the buf.
	If not, we may only have empty blocks and the footer.

	Fixes https://github.com/ruby/zlib/pull/56

	https://github.com/ruby/zlib/commit/437bea8003
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Revert "Workaround: Fix test failures on Ubuntu jammy s390x."</title>
<updated>2023-09-29T16:14:29+00:00</updated>
<author>
<name>Jun Aruga</name>
<email>jaruga@redhat.com</email>
</author>
<published>2023-09-29T09:29:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7278747d08a97e4b8e6470793d39b6107f69b0f3'/>
<id>7278747d08a97e4b8e6470793d39b6107f69b0f3</id>
<content type='text'>
This reverts commit https://github.com/ruby/zlib/commit/9f3b9c470c05 because we will
fix the issue on alternative way.

https://github.com/ruby/zlib/commit/3dfe3f9110
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit https://github.com/ruby/zlib/commit/9f3b9c470c05 because we will
fix the issue on alternative way.

https://github.com/ruby/zlib/commit/3dfe3f9110
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Workaround: Fix test failures on Ubuntu jammy s390x.</title>
<updated>2023-09-25T17:59:04+00:00</updated>
<author>
<name>Jun Aruga</name>
<email>jaruga@ruby-lang.org</email>
</author>
<published>2023-09-25T15:55:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=295862e22ad88b3c7204df18b9b6a8560a1896f9'/>
<id>295862e22ad88b3c7204df18b9b6a8560a1896f9</id>
<content type='text'>
This commit fixes the test failures on the zlib in Ubuntu jammy s390x.

According to the &lt;https://packages.ubuntu.com/jammy-updates/zlib1g&gt; -
`zlib_1.2.11.dfsg-2ubuntu9.2.debian.tar.xz`,
the zlib deb package is applying the patch 410.patch (madler/zlib#410), and
configured by `./configure --dfltcc` on Ubuntu jammy s390x. The `--dfltcc`
is to enable the deflate algorithm in hardware.

It produces a different (but still valid) compressed byte stream, and causes
the test failures in ruby/zlib. As a workaround, set the environment variable
`DFLTCC=0` disabling the implementation in zlib on s390x to the failing tests.

Note we need to test in a child Ruby process with `assert_separately` to test
on the `DFLTCC=0` set by the parent Ruby process.

https://github.com/ruby/zlib/commit/9f3b9c470c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit fixes the test failures on the zlib in Ubuntu jammy s390x.

According to the &lt;https://packages.ubuntu.com/jammy-updates/zlib1g&gt; -
`zlib_1.2.11.dfsg-2ubuntu9.2.debian.tar.xz`,
the zlib deb package is applying the patch 410.patch (madler/zlib#410), and
configured by `./configure --dfltcc` on Ubuntu jammy s390x. The `--dfltcc`
is to enable the deflate algorithm in hardware.

It produces a different (but still valid) compressed byte stream, and causes
the test failures in ruby/zlib. As a workaround, set the environment variable
`DFLTCC=0` disabling the implementation in zlib on s390x to the failing tests.

Note we need to test in a child Ruby process with `assert_separately` to test
on the `DFLTCC=0` set by the parent Ruby process.

https://github.com/ruby/zlib/commit/9f3b9c470c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Add truffleruby-head in CI</title>
<updated>2023-09-22T07:29:22+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2023-09-21T17:55:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=50e3b27db7ebf3bceffaaa2852e00a3c27e494c7'/>
<id>50e3b27db7ebf3bceffaaa2852e00a3c27e494c7</id>
<content type='text'>
* The latest release does not have this fix:
  https://github.com/oracle/truffleruby/commit/c77f8bb35db084c99d1f5b14748267866004222e

https://github.com/ruby/zlib/commit/8abc80b994
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* The latest release does not have this fix:
  https://github.com/oracle/truffleruby/commit/c77f8bb35db084c99d1f5b14748267866004222e

https://github.com/ruby/zlib/commit/8abc80b994
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Zlib.gunzip should not fail with utf-8 strings</title>
<updated>2023-08-10T20:12:21+00:00</updated>
<author>
<name>Sorah Fukumori</name>
<email>sorah@cookpad.com</email>
</author>
<published>2023-08-10T20:12:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d2864ca330f7cc7f879e737a817e1161bead65c3'/>
<id>d2864ca330f7cc7f879e737a817e1161bead65c3</id>
<content type='text'>
(https://github.com/ruby/zlib/pull/55)

zstream_discard_input was encoding and character-aware when given input is user-provided, so this discards `len` chars instead of `len` bytes.

Also Zlib.gunzip explains in its rdoc that it is equivalent with the following code, but this doesn't fail for UTF-8 String.

```ruby
string = %w[1f8b0800c28000000003cb48cdc9c9070086a6103605000000].pack("H*").force_encoding('UTF-8')
sio = StringIO.new(string)
p gz.read #=&gt; "hello"
gz&amp;.close
p Zlib.gunzip(string) #=&gt; Zlib::DataError
```

Reported and discovered by eagletmt at https://twitter.com/eagletmt/status/1689692467929694209

https://github.com/ruby/zlib/commit/c5e58bc62a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/zlib/pull/55)

zstream_discard_input was encoding and character-aware when given input is user-provided, so this discards `len` chars instead of `len` bytes.

Also Zlib.gunzip explains in its rdoc that it is equivalent with the following code, but this doesn't fail for UTF-8 String.

```ruby
string = %w[1f8b0800c28000000003cb48cdc9c9070086a6103605000000].pack("H*").force_encoding('UTF-8')
sio = StringIO.new(string)
p gz.read #=&gt; "hello"
gz&amp;.close
p Zlib.gunzip(string) #=&gt; Zlib::DataError
```

Reported and discovered by eagletmt at https://twitter.com/eagletmt/status/1689692467929694209

https://github.com/ruby/zlib/commit/c5e58bc62a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Fix the test broken in older versions</title>
<updated>2023-01-09T09:58:43+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-01-09T09:53:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9d078fe4778d6ba60e1daba0d7172d027a1e7f4d'/>
<id>9d078fe4778d6ba60e1daba0d7172d027a1e7f4d</id>
<content type='text'>
https://github.com/ruby/zlib/commit/fc89ff9ef0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/zlib/commit/fc89ff9ef0
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce `IO.new(..., path:)` and promote `File#path` to `IO#path`. (#6867)</title>
<updated>2022-12-08T05:19:53+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2022-12-08T05:19:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6fd5d2dc003bda5ce0685abd2b975d7ac7079d46'/>
<id>6fd5d2dc003bda5ce0685abd2b975d7ac7079d46</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Mask checksums to lower 32bits</title>
<updated>2022-04-02T08:01:33+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-04-02T07:06:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1cbdedec895070df1df96d05370cf8da084ab6fa'/>
<id>1cbdedec895070df1df96d05370cf8da084ab6fa</id>
<content type='text'>
Upper bits affect the result of `crc32` in zlib 1.2.12.

https://github.com/ruby/zlib/commit/9ab6d04af1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Upper bits affect the result of `crc32` in zlib 1.2.12.

https://github.com/ruby/zlib/commit/9ab6d04af1
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/zlib] Use omit instead of skip for test-unit</title>
<updated>2022-01-11T12:35:22+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-01-11T12:26:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6b87d980112c1b37f0bb64d5fa5d78a3f5899fdf'/>
<id>6b87d980112c1b37f0bb64d5fa5d78a3f5899fdf</id>
<content type='text'>
https://github.com/ruby/zlib/commit/5f23cd3009
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/zlib/commit/5f23cd3009
</pre>
</div>
</content>
</entry>
</feed>
