[#114181] [Ruby master Bug#19767] [Not really a bug, but more a not ideal notification] "historical binary regexp match" when using the "n" modifier in a ruby regex — "rubyFeedback (robert heiler) via ruby-core" <ruby-core@...>
SXNzdWUgIzE5NzY3IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IHJ1YnlGZWVkYmFjayAocm9iZXJ0IGhl
3 messages
2023/07/14
[ruby-core:114264] [Ruby master Bug#19532] Handling of 6-byte codepoints in left_adjust_char_head in CESU-8 encoding is broken
From:
"nagachika (Tomoyuki Chikanaga) via ruby-core" <ruby-core@...>
Date:
2023-07-22 05:02:54 UTC
List:
ruby-core #114264
Issue #19532 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 2.7: UNKNOWN, 3.0: REQUIRED, 3.1: DONE, 3.2: REQUIRED to 2.7: UNKNOWN, 3.0: REQUIRED, 3.1: DONE, 3.2: DONE
ruby_3_2 4e0653db3315e9e7859e38e0995e2b9900471370 merged revision(s) 2c8f2871a8aeff592369a993b1d69557160cfa61.
----------------------------------------
Bug #19532: Handling of 6-byte codepoints in left_adjust_char_head in CESU-8 encoding is broken
https://bugs.ruby-lang.org/issues/19532#change-103955
* Author: Eregon (Benoit Daloze)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.2.1 (2023-02-08 revision 31819e82c8) [x86_64-linux]
* Backport: 2.7: UNKNOWN, 3.0: REQUIRED, 3.1: DONE, 3.2: DONE
----------------------------------------
```ruby
irb(main):001:0> "\u{10000}".encode("cesu-8").chop
=> "\xED\xA0\x80"
```
But it should be `""`.
Fix in https://github.com/ruby/ruby/pull/7510
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- [email protected]
To unsubscribe send an email to [email protected]
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/