From 520d763d777721fd82bac7cea574e3f136efe91f Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 25 Dec 2007 03:24:50 +0000 Subject: [PATCH] * proc.c (method_inspect): preserve encoding of the method name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ proc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bac8c0bacb..1b6f52d123 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ Tue Dec 25 12:22:17 2007 NARUSE, Yui * sample/from.rb: follow Ruby 1.9 libraries. +Tue Dec 25 12:21:56 2007 Yukihiro Matsumoto + + * proc.c (method_inspect): preserve encoding of the method name. + Tue Dec 25 12:07:52 2007 Nobuyoshi Nakada * configure.in (BASERUBY): delayed error until BASERUBY is used. diff --git a/proc.c b/proc.c index 8caabaecac..422af20c52 100644 --- a/proc.c +++ b/proc.c @@ -1402,7 +1402,7 @@ method_inspect(VALUE method) } } rb_str_buf_cat2(str, sharp); - rb_str_buf_cat2(str, rb_id2name(data->oid)); + rb_str_append(str, rb_id2str(data->oid)); rb_str_buf_cat2(str, ">"); return str;