summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-25 18:44:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-25 18:44:07 +0000
commit5d4aad2b1b7e5a941bf0ed87d280333301183a25 (patch)
treecf5a9e39745ddc1ec2d75ab374232f9db6e996a7 /vm_eval.c
parentddfcb969300604b1f03887e2498779c7c879ca96 (diff)
vm_eval.c: preserve encoding
* vm_eval.c (rb_method_call_status): preserve encoding of called method name in error messages. * vm_insnhelper.c (vm_call_method): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 0f2b19053d..1a6f49b08c 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -583,8 +583,8 @@ rb_method_call_status(rb_thread_t *th, const rb_method_entry_t *me, call_type sc
}
if (NOEX_SAFE(noex) > th->safe_level) {
- rb_raise(rb_eSecurityError, "calling insecure method: %s",
- rb_id2name(me->called_id));
+ rb_raise(rb_eSecurityError, "calling insecure method: %"PRIsVALUE,
+ rb_id2str(me->called_id));
}
}
}