From bd2d094aab4c672d5fef4a126087e0cded864c6c Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 20 Oct 2014 05:20:39 +0000 Subject: vm_insnhelper.c: preserve encoding * vm_insnhelper.c (vm_getivar): preserve variable name encoding in warning message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_insnhelper.c') diff --git a/vm_insnhelper.c b/vm_insnhelper.c index b81001b0ef..495b7224fd 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -527,7 +527,7 @@ vm_getivar(VALUE obj, ID id, IC ic, rb_call_info_t *ci, int is_attr) if (UNLIKELY(val == Qundef)) { if (!is_attr && RTEST(ruby_verbose)) - rb_warning("instance variable %s not initialized", rb_id2name(id)); + rb_warning("instance variable %"PRIsVALUE" not initialized", QUOTE_ID(id)); val = Qnil; } return val; -- cgit v1.2.3