From 982a9d8e91a0de6abd2af3d888aba1aa2880103c Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 16 Apr 2015 14:28:29 +0000 Subject: marshal.c: class name encoding * marshal.c (r_object0): preserve the encoding of the class name in an error message, in the case of USRMARSHAL without marshal_load method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_marshal.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 1b74b47dd1..3548850a42 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -684,4 +684,15 @@ class TestMarshal < Test::Unit::TestCase Marshal.load(d) } end + + def test_unloadable_usrmarshal + c = eval("class UsrMarshal\u{23F0 23F3}