[#107867] Fwd: [ruby-cvs:91197] 8f59482f5d (master): add some tests for Unicode Version 14.0.0 — Martin J. Dürst <duerst@...>
To everybody taking care of continuous integration:
3 messages
2022/03/13
[#108090] [Ruby master Bug#18666] No rule to make target 'yaml/yaml.h', needed by 'api.o' — duerst <noreply@...>
Issue #18666 has been reported by duerst (Martin D端rst).
7 messages
2022/03/28
[#108117] [Ruby master Feature#18668] Merge `io-nonblock` gems into core — "Eregon (Benoit Daloze)" <noreply@...>
Issue #18668 has been reported by Eregon (Benoit Daloze).
22 messages
2022/03/30
[ruby-core:107861] [Ruby master Bug#18421] `IO#readpartial` and `IO#read_nonblock` return non-empty string on empty file
From:
"nagachika (Tomoyuki Chikanaga)" <noreply@...>
Date:
2022-03-12 07:57:25 UTC
List:
ruby-core #107861
Issue #18421 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 2.6: REQUIRED, 2.7: DONE, 3.0: REQUIRED to 2.6: REQUIRED, 2.7: DONE, 3.0: DONE
ruby_3_0 7c0537906314f0c2a317b37661ccdec8dddc6277 merged revision(s) fdf39963490cf2cf95b30d91bb9b35964c2c2350.
----------------------------------------
Bug #18421: `IO#readpartial` and `IO#read_nonblock` return non-empty string on empty file
https://bugs.ruby-lang.org/issues/18421#change-96800
* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Priority: Normal
* Backport: 2.6: REQUIRED, 2.7: DONE, 3.0: DONE
----------------------------------------
With an empty file `empty_file`, this seems indisputably correct.
```ruby
File.open("empty_file") {|f| f.read(0, "abc")} #=> ""
```
OTOH, obviously these seem bugs.
```ruby
File.open("empty_file") {|f|f.readpartial(0, "abc")} #=> "abc"
File.open("empty_file") {|f|f.read_nonblock(0, "abc")} #=> "abc"
```
https://github.com/ruby/ruby/pull/5323
--
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>