diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-26 07:00:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-26 07:00:02 +0000 |
commit | 2c23bf741f6cde803c5232c02fd4f79ef51dc5b1 (patch) | |
tree | 1d00ca05cfd63bb6bfacd64b2ada05dc7ebac7e5 /thread.c | |
parent | fe8a3074f9df1c7aa03d552c6d022956690141a2 (diff) |
thread.c: preserve encoding
* thread.c (rb_thread_inspect): preserve encoding of the class
name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2679,14 +2679,14 @@ rb_thread_safe_level(VALUE thread) static VALUE rb_thread_inspect(VALUE thread) { - const char *cname = rb_obj_classname(thread); + VALUE cname = rb_class_path(rb_obj_class(thread)); rb_thread_t *th; const char *status; VALUE str; GetThreadPtr(thread, th); status = thread_status_name(th); - str = rb_sprintf("#<%s:%p %s>", cname, (void *)thread, status); + str = rb_sprintf("#<%"PRIsVALUE":%p %s>", cname, (void *)thread, status); OBJ_INFECT(str, thread); return str; |