Integer#chr(encoding: Encoding::UTF_8)
raises a different RangeError
exception message than on CRuby
#7477
Milestone
Integer#chr(encoding: Encoding::UTF_8)
raises a differentRangeError
exception message than on CRuby 3.1.0 when the byte value is invalid.Environment Information
jruby 9.4.0.0 (3.1.0) 2022-11-23 95c0ec159f OpenJDK 64-Bit Server VM 17.0.5+8 on 17.0.5+8 +jit [x86_64-linux]
Linux dev 6.0.9-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 16 17:50:45 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
LANG=en_US.UTF-8
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: