diff options
author | 卜部昌平 <[email protected]> | 2020-08-11 11:36:48 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-08-11 16:51:07 +0900 |
commit | b0eb5aa34476636771a6bfa1397115011066c410 (patch) | |
tree | f5ea56463e9876078932c94649a9ca4fd3a2d784 /tool/ruby_vm/helpers | |
parent | d43e99b7220ae3a7fbd58fbc8bde74085f6bd14c (diff) |
RubyVM::CEscape#rstring2cstr: do not escape '
A single quote "is representable either by itself or by the escape
sequence", according to ISO/IEC 9899 (checked all versions). So this is
not a bug fix. But the generated output is a bit readable without
backslashes.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3405
Diffstat (limited to 'tool/ruby_vm/helpers')
-rw-r--r-- | tool/ruby_vm/helpers/c_escape.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/ruby_vm/helpers/c_escape.rb b/tool/ruby_vm/helpers/c_escape.rb index fa3cb8b1aa..a3368b8cc9 100644 --- a/tool/ruby_vm/helpers/c_escape.rb +++ b/tool/ruby_vm/helpers/c_escape.rb @@ -60,7 +60,7 @@ module RubyVM::CEscape "\x18"=>"\\x18", "\x19"=>"\\x19", "\x1A"=>"\\x1a", "\e"=>"\\x1b", "\x1C"=>"\\x1c", "\x1D"=>"\\x1d", "\x1E"=>"\\x1e", "\x1F"=>"\\x1f", " "=> " ", "!"=> "!", "\""=> "\\\"", "#"=> "#", - "$"=> "$", "%"=> "%", "&"=> "&", "'"=> "\\'", + "$"=> "$", "%"=> "%", "&"=> "&", "'"=> "'", "("=> "(", ")"=> ")", "*"=> "*", "+"=> "+", ","=> ",", "-"=> "-", "."=> ".", "/"=> "/", "0"=> "0", "1"=> "1", "2"=> "2", "3"=> "3", |