[#82706] [Ruby trunk Bug#13851] getting "can't modify string; temporarily locked" on non-frozen instances — cardoso_tiago@...
Issue #13851 has been updated by chucke (Tiago Cardoso).
3 messages
2017/09/07
[#82853] [Ruby trunk Bug#13916] Race condition when sending a signal to a new fork — russell.davis@...
Issue #13916 has been reported by russelldavis (Russell Davis).
3 messages
2017/09/19
[#82892] [Ruby trunk Bug#13921] buffered read_nonblock doesn't work as expected using SSLSocket — cardoso_tiago@...
Issue #13921 has been updated by chucke (Tiago Cardoso).
3 messages
2017/09/20
[ruby-core:82941] [Ruby trunk Bug#13925] string.split(pattern, 1) should return [self.dup], but it returns [self]
From:
hanachin@...
Date:
2017-09-23 06:43:54 UTC
List:
ruby-core #82941
Issue #13925 has been updated by hanachin (Seiei Miyagi).
I added some tests and send a Pull Request to ruby/ruby
https://github.com/ruby/ruby/pull/1705
----------------------------------------
Bug #13925: string.split(pattern, 1) should return [self.dup], but it returns [self]
https://bugs.ruby-lang.org/issues/13925#change-66844
* Author: tompng (tomoya ishida)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
```ruby
msg = 'abababababa'
msg.split('b', 4).map(&:upcase!) # won't overwrite msg
puts msg # abababababa (expected)
msg.split('b', 1).map(&:upcase!) # this overwrites msg
puts msg # ABABABABABA (abababababa is expected)
```
I wrote a patch for this.
---Files--------------------------------
split_limit_1.patch (352 Bytes)
partition_rpartition.patch (842 Bytes)
--
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>