mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 20:44:20 +00:00
Skipping detecting the encoding is almost always right, just for binary it should actually happen. A symbol containing escapes that are invalid in utf-8 would fail to parse since symbols must be valid in the script encoding. Additionally, the parser gem would raise an exception somewhere during string handling https://github.com/ruby/prism/commit/fa0154d9e4
10 lines
59 B
Plaintext
10 lines
59 B
Plaintext
# encoding: binary
|
|
|
|
"\xcd"
|
|
|
|
:"\xcd"
|
|
|
|
/#{"\xcd"}/
|
|
|
|
%W[\xC0]
|