ruby-changes:63896
From: Jeremy <ko1@a...>
Date: Fri, 4 Dec 2020 19:13:03 +0900 (JST)
Subject: [ruby-changes:63896] a60dfff434 (master): [ruby/zlib] Document that gets can return nil when eof? returns false
https://git.ruby-lang.org/ruby.git/commit/?id=a60dfff434 From a60dfff43470583bbb4474594efde8607f889e8b Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Fri, 11 Sep 2020 13:15:08 -0700 Subject: [ruby/zlib] Document that gets can return nil when eof? returns false This behavior differs from File#gets. Fixes [Bug #13904] https://github.com/ruby/zlib/commit/448e41efdd diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index c8b206f..c540d4c 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -4229,6 +4229,8 @@ gzreader_gets(int argc, VALUE *argv, VALUE obj) https://github.com/ruby/ruby/blob/trunk/ext/zlib/zlib.c#L4229 * Document-method: Zlib::GzipReader#gets * * See Zlib::GzipReader documentation for a description. + * However, note that this method can return +nil+ even if + * #eof? returns false, unlike the behavior of File#gets. */ static VALUE rb_gzreader_gets(int argc, VALUE *argv, VALUE obj) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/