summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-16 12:46:07 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-16 12:46:07 (GMT)
commitbdf16df33ae3eb9e6c513c29bcbb250dc8c9542b (patch)
treefca185e0af9d68afaed90a6633083f40813613b2 /marshal.c
parent2c1c5570e83ab6cc7f832cf0249e0c44cb2689e0 (diff)
marshal.c: class name encoding
* marshal.c (w_object): preserve the encoding of the class name in an error message, in the case of no _dump_data method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/marshal.c b/marshal.c
index b38c53c..9587783 100644
--- a/marshal.c
+++ b/marshal.c
@@ -893,8 +893,8 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
if (!rb_obj_respond_to(obj, s_dump_data, TRUE)) {
rb_raise(rb_eTypeError,
- "no _dump_data is defined for class %s",
- rb_obj_classname(obj));
+ "no _dump_data is defined for class %"PRIsVALUE,
+ rb_obj_class(obj));
}
v = rb_funcall2(obj, s_dump_data, 0, 0);
check_dump_arg(arg, s_dump_data);