diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-23 12:24:56 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-23 12:24:56 +0000 |
commit | a5fadaadd368d0a96d7e3bc3edfdc92ae22f44ce (patch) | |
tree | 5166fcd26432715a2f711efca4b0e3873e24c371 /string.c | |
parent | bac8fa5f9db55f8f7a9100fcb0e9cc43846442f0 (diff) |
* string.c (rb_str_inspect): refix r40413, on Ruby 1.9 usual character
escape uses hex/Unicode escapes, so fix to use Unicode escape on
Unicode strings and hex on others. [ruby-core:54458] [Bug #8290]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -4572,11 +4572,6 @@ rb_str_inspect(VALUE str) } } switch (c) { - case '\0': - if (p - n > prev) str_buf_cat(result, prev, p - n - prev); - str_buf_cat(result, "\\000", 4); - prev = p; - continue; case '\n': cc = 'n'; break; case '\r': cc = 'r'; break; case '\t': cc = 't'; break; |