Project

General

Profile

Bug #14800

Zlib::GzipReader#read does not support 2nd argument

Added by okkez (okkez _) 23 days ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
[ruby-core:87321]

Description

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

Also available in: Atom PDF