diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-12-16 07:30:36 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-12-16 07:30:36 +0000 |
commit | e299d511db939232c628d6880e61c32e83937d66 (patch) | |
tree | a2083bfd64a4fb3ed7454a7e7062ff9f7fa1232e /string.c | |
parent | ce8859c5563493a94f57d3b630e7b9c1d3cd656f (diff) |
first public release of 1.1d (pre1.2) series
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1dev@354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1345,7 +1345,7 @@ rb_str_inspect(str) CHECK(1); *b++ = c; } - else if (c == '"' || c == '\''|| c == '\\') { + else if (c == '"'|| c == '\\') { CHECK(2); *b++ = '\\'; *b++ = c; @@ -1414,7 +1414,7 @@ rb_str_dump(str) while (p < pend) { char c = *p++; switch (c) { - case '"': case '\'': case '\\': + case '"': case '\\': case '\n': case '\r': case '\t': case '\f': case '\013': case '\007': case '\033': @@ -1440,7 +1440,7 @@ rb_str_dump(str) while (p < pend) { char c = *p++; - if (c == '"' || c == '\'' || c == '\\') { + if (c == '"' || c == '\\') { *q++ = '\\'; *q++ = c; } |