summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_m17n.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-28 02:26:23 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-28 02:26:23 +0000
commit212e057d3e46ce3f6dffa84fcfd706c37ab777fb (patch)
tree586c2c57e304e793604f53229ea845696d18343c /test/ruby/test_m17n.rb
parentd56a257e28d86fb2b228ecc46a1d7c366a6f888d (diff)
downloadruby-212e057d3e46ce3f6dffa84fcfd706c37ab777fb.tar.gz
ruby-212e057d3e46ce3f6dffa84fcfd706c37ab777fb.tar.xz
ruby-212e057d3e46ce3f6dffa84fcfd706c37ab777fb.zip
* parse.y (parser_str_new): encoding of UTF-8 literal string in
US-ASCII script is UTF-8. [ruby-dev:33406] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_m17n.rb')
-rw-r--r--test/ruby/test_m17n.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb
index c503cdbea..3423a1d58 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