summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-16 11:43:37 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-16 11:43:37 (GMT)
commit2c1c5570e83ab6cc7f832cf0249e0c44cb2689e0 (patch)
tree159ccb46c73c2c7378768f41fc18a224a444d746 /marshal.c
parentc5e9beac25c3cf4e5ff317468db043455c504a73 (diff)
marshal.c: class name encoding
* marshal.c (w_object): preserve the encoding of the class name in an error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50329 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 1fae545..b38c53c 100644
--- a/marshal.c
+++ b/marshal.c
@@ -904,8 +904,8 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
break;
default:
- rb_raise(rb_eTypeError, "can't dump %s",
- rb_obj_classname(obj));
+ rb_raise(rb_eTypeError, "can't dump %"PRIsVALUE,
+ rb_obj_class(obj));
break;
}
RB_GC_GUARD(obj);