From 3b885ac18df69b301488fd57ed5b9d7efe7b3080 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 12 Dec 2007 14:30:54 +0000 Subject: * 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 --- string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 2dadbbb82..d6c22dbfc 100644 --- a/string.c +++ b/string.c @@ -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; } } -- cgit