Skip to content

Commit a97adb1

Browse files
committed
Fix hex characters in inspecting broken UTF-8
1 parent a0f15a1 commit a97adb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ruby/truffleruby/core/string.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def inspect
571571
if char
572572
index += inspect_char(enc, result_encoding, ascii, unicode, index, char, array)
573573
else
574-
array << "\\x#{getbyte(index).to_s(16)}"
574+
array << "\\x#{getbyte(index).to_s(16).upcase}"
575575
index += 1
576576
end
577577
end

0 commit comments

Comments
 (0)