summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-26 16:15:17 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-26 16:15:17 +0000
commitc72e5e70d98c63718b2e606e1e1f8c29b1c33677 (patch)
tree46cc1ccce493364176ff4e23b05f29e063454cd8 /string.c
parenta2ac434a0700d5bd08bf213b4ede09899330f9df (diff)
merge revision(s) 40413,40414,40415,40423: [Backport #8290]
* string.c (rb_str_inspect): NUL should not be represented as "\0" when octal digits may follow. * string.c (rb_str_inspect): NUL should not be represented as "\0" when octal digits may follow. [ruby-core:54458] [Bug #8290] * test/ruby/test_module.rb (TestModule#test_const_get_invalid_name) (test_const_defined_invalid_name): Fix expected values. * 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/branches/ruby_2_0_0@40488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/string.c b/string.c
index 02d2474bc2..1b7d2f8639 100644
--- a/string.c
+++ b/string.c
@@ -4570,7 +4570,6 @@ rb_str_inspect(VALUE str)
}
}
switch (c) {
- case '\0': cc = '0'; break;
case '\n': cc = 'n'; break;
case '\r': cc = 'r'; break;
case '\t': cc = 't'; break;