[ruby-core:74233] [Ruby trunk Bug#11885] [PATCH] IO#readpartial rejects bad args

From: nagachika00@...
Date: 2016-03-08 20:28:03 UTC
List: ruby-core #74233
Issue #11885 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: UNKNOWN, 2.1: DONE, 2.2: REQUIRED, 2.3: REQUIRED to 2.0.0: UNKNOWN, 2.1: DONE, 2.2: DONE, 2.3: REQUIRED

r51016(partially) and r53329 were backported into `ruby_2_2` branch at r54045.

----------------------------------------
Bug #11885: [PATCH] IO#readpartial rejects bad args
https://bugs.ruby-lang.org/issues/11885#change-57369

* Author: Eric Wong
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: DONE, 2.2: DONE, 2.3: REQUIRED
----------------------------------------
IO#readpartial rejects bad args

Sometimes a sleepy developer will want to swap read_nonblock
for readpartial forget to remove "exception: false"

* io.c (io_getpartial): remove unused kwarg from template
* test/ruby/test_io.rb (test_readpartial_bad_args): new


---Files--------------------------------
0001-IO-readpartial-rejects-bad-args.patch (2.06 KB)


-- 
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>

In This Thread

Prev Next