diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-12 14:30:54 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-12 14:30:54 +0000 |
| commit | 3b885ac18df69b301488fd57ed5b9d7efe7b3080 (patch) | |
| tree | a9a818afa46dd26a6313ca9f79b75bd0e09678b2 /string.c | |
| parent | cdb21616f01dd6bbb94f78c6bbdf64b9bbada0bc (diff) | |
| download | ruby-3b885ac18df69b301488fd57ed5b9d7efe7b3080.tar.gz ruby-3b885ac18df69b301488fd57ed5b9d7efe7b3080.tar.xz ruby-3b885ac18df69b301488fd57ed5b9d7efe7b3080.zip | |
* re.c, regerror.c, string.c, parse.y, ruby.c, file.c:
use capital letter for \xHH notation. [ruby-dev:32511]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3001,7 +3001,7 @@ rb_str_inspect(VALUE str) escape_codepoint: for (q = p-n; q < p; q++) { s = buf; - sprintf(buf, "\\x%02x", *q & 0377); + sprintf(buf, "\\x%02X", *q & 0377); while (*s) { str_cat_char(result, *s++, enc); } @@ -3113,7 +3113,7 @@ rb_str_dump(VALUE str) } else { *q++ = '\\'; - sprintf(q, "x%02x", c&0xff); + sprintf(q, "x%02X", c&0xff); q += 3; } } |
