diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-25 18:44:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-25 18:44:07 +0000 |
commit | 5d4aad2b1b7e5a941bf0ed87d280333301183a25 (patch) | |
tree | cf5a9e39745ddc1ec2d75ab374232f9db6e996a7 /vm_insnhelper.c | |
parent | ddfcb969300604b1f03887e2498779c7c879ca96 (diff) | |
download | ruby-5d4aad2b1b7e5a941bf0ed87d280333301183a25.tar.gz |
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_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index e442383a04..7bb0aadaa8 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1779,7 +1779,7 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci) } } else if ((noex_safe = NOEX_SAFE(ci->me->flag)) > th->safe_level && (noex_safe > 2)) { - rb_raise(rb_eSecurityError, "calling insecure method: %s", rb_id2name(ci->mid)); + rb_raise(rb_eSecurityError, "calling insecure method: %"PRIsVALUE, rb_id2str(ci->mid)); } else { goto normal_method_dispatch; |