diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-22 15:04:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-22 15:04:57 +0000 |
commit | 6f02547d83ec4651999b55f606672084cb0fe22b (patch) | |
tree | 33670755b21e35cdb937e083360465712d75b76a /vm_method.c | |
parent | 1df33a4a5f4bb1b2393cf5597e7d1156983c7741 (diff) | |
download | ruby-6f02547d83ec4651999b55f606672084cb0fe22b.tar.gz |
internal.h: quote unprintable
* internal.h (QUOTE, QUOTE_ID): quote unprintable chars in strings and
IDs. [Bug #7574] [ruby-dev:46749]
* string.c (rb_str_quote_unprintable): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_method.c b/vm_method.c index 8ca3f936e4..6a394811b6 100644 --- a/vm_method.c +++ b/vm_method.c @@ -865,8 +865,8 @@ rb_undef(VALUE klass, ID id) else if (RB_TYPE_P(c, T_MODULE)) { s0 = " module"; } - rb_name_error(id, "undefined method `%s' for%s `%s'", - rb_id2name(id), s0, rb_class2name(c)); + rb_name_error(id, "undefined method `%"PRIsVALUE"' for%s `%"PRIsVALUE"'", + QUOTE_ID(id), s0, rb_class_name(c)); } rb_add_method(klass, id, VM_METHOD_TYPE_UNDEF, 0, NOEX_PUBLIC); |