1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2007-12-09 21:48:05 +00:00
parent 08eb58d3dd
commit f4592d7bb0
9 changed files with 28 additions and 11 deletions

View file

@ -37,7 +37,7 @@ class TestRegexp < Test::Unit::TestCase
end
def test_to_s
assert_equal '(?-mix:\000)', Regexp.new("\0").to_s
assert_equal '(?-mix:\x00)', Regexp.new("\0").to_s
end
def test_union