[#84867] [Ruby trunk Bug#14357] thread_safe tests suite segfaults — v.ondruch@...

Issue #14357 has been reported by vo.x (Vit Ondruch).

11 messages 2018/01/15

[#84980] [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — hsbt@...

Issue #13618 has been updated by hsbt (Hiroshi SHIBATA).

10 messages 2018/01/23
[#85012] Re: [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — Eric Wong <normalperson@...> 2018/01/23

hsbt@ruby-lang.org wrote:

[ruby-core:84657] [Ruby trunk Bug#14257] the chomp option removes newlines in additon to the provided separator for String#each_line and String#lines

From: naruse@...
Date: 2018-01-05 20:39:30 UTC
List: ruby-core #84657
Issue #14257 has been updated by naruse (Yui NARUSE).

Backport changed from 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED to 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONE

ruby_2_5 r61628 merged revision(s) 61513.

----------------------------------------
Bug #14257: the chomp option removes newlines in additon to the provided separator for String#each_line and String#lines
https://bugs.ruby-lang.org/issues/14257#change-69238

* Author: AaronLasseigne (Aaron Lasseigne)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.5.0
* Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONE
----------------------------------------
I'm not entirely sure this is a bug but I had a hard time finding anything that indicated that the change was on purpose.

The `chomp` option would remove the provided separator from each line. Now it does that and it also removes newlines.

2.4

~~~ ruby
> "a b c d\n".lines(' ', chomp: true)
=> ["a", "b", "c", "d\n"]
~~~

2.5

~~~ ruby
> "a b c d\n".lines(' ', chomp: true)
=> ["a", "b", "c", "d"]
~~~





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