[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>
Currently, ruby/spec is maintained mostly by individuals and enjoys the
13 messages
2016/12/13
[#78963] Re: ruby/spec needs help from CRuby committers
— Urabe Shyouhei <shyouhei@...>
2017/01/04
I did ask attendees of last developer meeting to join this
[#78642] Re: ruby/spec needs help from CRuby committers
— Eric Wong <normalperson@...>
2016/12/14
Benoit Daloze <eregontp@gmail.com> wrote:
[ruby-core:78474] [Ruby trunk Bug#12998][Assigned] paragraph mode inconsistency between `IO#each_line` and `String#each_line`
From:
nobu@...
Date:
2016-12-03 12:18:55 UTC
List:
ruby-core #78474
Issue #12998 has been updated by Nobuyoshi Nakada.
Status changed from Open to Assigned
Assignee set to Yukihiro Matsumoto
----------------------------------------
Bug #12998: paragraph mode inconsistency between `IO#each_line` and `String#each_line`
https://bugs.ruby-lang.org/issues/12998#change-61851
* Author: Nobuyoshi Nakada
* Status: Assigned
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* ruby -v:
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
With this lines.rb:
```ruby
lines = "abc\n\n\n\ndef\n"
p IO.pipe{|r,w|w.print lines; w.close; r.each_line("").to_a}
p lines.each_line("").to_a
```
```
$ ./ruby -v lines.rb
ruby 2.4.0dev (2016-12-02 trunk 56965) [x86_64-darwin15]
["abc\n\n", "def\n"]
["abc\n\n\n\n", "def\n"]
```
I think these methods should be consistent and the behavior of `IO` would be desirable.
https://github.com/ruby/ruby/compare/trunk...nobu:bug/string-paragraph-mode
--
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>