[#106355] [Ruby master Bug#18373] RBS build failure: '/include/x86_64-linux/ruby/config.h', needed by 'constants.o'. — "vo.x (Vit Ondruch)" <noreply@...>
Issue #18373 has been reported by vo.x (Vit Ondruch).
28 messages
2021/12/01
[ruby-core:106767] [Ruby master Bug#18421] `IO#readpartial` and `IO#read_nonblock` return non-empty string on empty file
From:
"nobu (Nobuyoshi Nakada)" <noreply@...>
Date:
2021-12-22 06:45:30 UTC
List:
ruby-core #106767
Issue #18421 has been reported by nobu (Nobuyoshi Nakada).
----------------------------------------
Bug #18421: `IO#readpartial` and `IO#read_nonblock` return non-empty string on empty file
https://bugs.ruby-lang.org/issues/18421
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Priority: Normal
* Backport: 2.6: REQUIRED, 2.7: REQUIRED, 3.0: REQUIRED
----------------------------------------
With an empty file `empty_file`, this seems indisputably correct.
```ruby
File.open("empty_file") {|f| f.read(0, "abc")} #=> ""
```
--
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>