From f4592d7bb0c88ab22e15e632afb70279f119af4e Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 9 Dec 2007 21:48:05 +0000 Subject: * re.c (rb_reg_expr_str): use \xHH instead of \OOO. * regerror.c (to_ascii): ditto. (onig_snprintf_with_pattern): ditto. (onig_snprintf_with_pattern): ditto. * string.c (rb_str_inspect): ditto. (rb_str_dump): ditto. * parse.y (parser_yylex): ditto. * ruby.c (proc_options): ditto. * file.c (rb_f_test): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- re.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 're.c') diff --git a/re.c b/re.c index 9592e91591..563acbf3af 100644 --- a/re.c +++ b/re.c @@ -259,7 +259,7 @@ rb_reg_expr_str(VALUE str, const char *s, long len) else if (!rb_enc_isspace(c, enc)) { char b[8]; - sprintf(b, "\\%03o", c); + sprintf(b, "\\x%02x", c); rb_str_buf_cat(str, b, 4); } else { -- cgit v1.2.3