Actions
Bug #18421
closed`IO#readpartial` and `IO#read_nonblock` return non-empty string on empty file
Bug #18421:
`IO#readpartial` and `IO#read_nonblock` return non-empty string on empty file
Actions
Added by nobu (Nobuyoshi Nakada) almost 5 years ago. Updated over 4 years ago.
Applied in changeset git|fdf39963490cf2cf95b30d91bb9b35964c2c2350.
Empty and return the buffer if zero size is given [Bug #18421]
In IO#readpartial and IO#read_nonblock, as well as IO#read.
ruby_2_7 c4a5eaf37b9bf87f8324a7070c8dbc597b89c4fc merged revision(s) fdf39963490cf2cf95b30d91bb9b35964c2c2350.
ruby_3_0 7c0537906314f0c2a317b37661ccdec8dddc6277 merged revision(s) fdf39963490cf2cf95b30d91bb9b35964c2c2350.