summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-11 10:56:54 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-11 10:56:54 +0000
commit921aed777864970c7408a0d335c4fd44565f6457 (patch)
treef2ab0058d8538ec32181ba4adf719a388258cbd2 /test
parent05c2cc90895750255f64254f2491ff0ad77cc13a (diff)
merges r33201 from trunk into ruby_1_9_3.
-- * encoding.c (load_encoding): predefined encoding names are safe. [ruby-dev:44469] [Bug #5279] * transcode.c (load_transcoder_entry): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_encoding.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_encoding.rb b/test/ruby/test_encoding.rb
index 1ed7252458..eaad03d302 100644
--- a/test/ruby/test_encoding.rb
+++ b/test/ruby/test_encoding.rb
@@ -96,4 +96,9 @@ class TestEncoding < Test::Unit::TestCase
str2 = Marshal.load(Marshal.dump(str2))
assert_equal(str, str2, '[ruby-dev:38596]')
end
+
+ def test_unsafe
+ bug5279 = '[ruby-dev:44469]'
+ assert_ruby_status([], '$SAFE=3; "a".encode("utf-16be")', bug5279)
+ end
end