* re.c, regerror.c, string.c, parse.y, ruby.c, file.c:

use capital letter for \xHH notation.  [ruby-dev:32511]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-12-12 14:30:54 +00:00
parent 098ca00175
commit b92cee1ddb
7 changed files with 16 additions and 11 deletions

View file

@ -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;
}
}