diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-28 02:26:23 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-28 02:26:23 +0000 |
commit | 4a948632442b735d306c9583f20f734b0bf7577c (patch) | |
tree | 586c2c57e304e793604f53229ea845696d18343c /test | |
parent | c7c263eefc2509df20206763f05383009961d68c (diff) | |
download | ruby-4a948632442b735d306c9583f20f734b0bf7577c.tar.gz |
* parse.y (parser_str_new): encoding of UTF-8 literal string in
US-ASCII script is UTF-8. [ruby-dev:33406]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_m17n.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index c503cdbea3..3423a1d58a 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -153,6 +153,7 @@ class TestM17N < Test::Unit::TestCase def test_utf8_literal assert_equal(Encoding::UTF_8, "\u3042".encoding, "[ruby-dev:33406] \"\\u3042\".encoding") + assert_raise(SyntaxError) { eval(a('\u3052\x80')) } end def test_string_mixed_unicode |