summaryrefslogtreecommitdiff
path: root/gc.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2022-09-26 16:39:53 +0900
committerKazuki Yamaguchi <k@rhe.jp>2022-09-26 16:44:46 +0900
commit5b0396473bbcd70756a09d887fb7436d6cd72dce (patch)
treebf33032d7dad0c028d9b1781bc6018e2f7e99e04 /gc.rb
parent1c14e406d3c4a4c660f66f0d1c642d1ed2aabed2 (diff)
downloadruby-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