From da42c102c18156c2192df203cb2f79b88aa8092f Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 5 Jan 2008 16:39:38 +0000 Subject: * re.c (rb_reg_initialize_str): /\x80/n is not an error even if script encoding is EUC-JP. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_m17n.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index 28db8377b9..daa8af7fc4 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -382,6 +382,8 @@ class TestM17N < Test::Unit::TestCase assert_warning(%r{regexp match /.../n against to UTF-8 string}) { assert_equal(nil, r =~ u("\xc2\xa1")) } + + assert_nothing_raised { eval(e("/\\x80/n")) } end def test_regexp_ascii -- cgit v1.2.3