diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2022-09-26 16:39:53 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2022-09-26 16:44:46 +0900 |
commit | 5b0396473bbcd70756a09d887fb7436d6cd72dce (patch) | |
tree | bf33032d7dad0c028d9b1781bc6018e2f7e99e04 /gc.rb | |
parent | 1c14e406d3c4a4c660f66f0d1c642d1ed2aabed2 (diff) | |
download | ruby-5b0396473bbcd70756a09d887fb7436d6cd72dce.tar.gz |
Fix coderange calculation in String#b
Leave the new coderange unknown if the original encoding is not
ASCII-compatible. Non-ASCII-compatible encoding strings with valid or
broken coderange can end up as ascii-only.
Fixes 9a8f6e392fbd ("Cheaply derive code range for String#b return
value", 2022-07-25).
Diffstat (limited to 'gc.rb')
0 files changed, 0 insertions, 0 deletions