Issue #14800 has been reported by okkez (okkez _).

----------------------------------------
Bug #14800: Zlib::GzipReader#read does not support 2nd argument
https://bugs.ruby-lang.org/issues/14800

* Author: okkez (okkez _)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
`Zlib::GzipReader#read` does not support 2nd argument for output buffer.
It is not same as `IO#read` and `StringIO#read`.

It is useful for duck typing to copy both plain files and gzipped files. 

See also
* https://docs.ruby-lang.org/en/2.5.0/Zlib/GzipReader.html#method-i-read
* https://docs.ruby-lang.org/en/2.5.0/IO.html#method-i-read
* https://docs.ruby-lang.org/en/2.5.0/StringIO.html#method-i-read




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>