# ok
# hello 😀
# ok
'hello'
'😀'
# NOT OK
'hello 😀'
Rubyfmt's output
# ok
# hello 😀
# ok
"hello"
"😀"
# NOT OK
"hello \u{1F600}"
This breaks because
It seems that Rubyfmt outputs non-ASCII characters in a string as Unicode literal notation when there are ASCII characters in the same string. The problem occurs for non-emoji characters too, such as あいうえお , 漢字 , 유니코드 , etc.
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
Input file
Rubyfmt's output
This breaks because
It seems that Rubyfmt outputs non-ASCII characters in a string as Unicode literal notation when there are ASCII characters in the same string. The problem occurs for non-emoji characters too, such as
あいうえお
,漢字
,유니코드
, etc.