* proc.c (method_name): preserve Symbol's encoding.

* numeric.c (fix_id2name): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-12-24 16:38:44 +00:00
parent a04a812ed0
commit 6ca558d6ab
8 changed files with 17 additions and 13 deletions

2
vm.c
View file

@ -286,7 +286,7 @@ collect_local_variables_in_env(rb_env_t *env, VALUE ary)
for (i = 0; i < env->block.iseq->local_table_size; i++) {
ID lid = env->block.iseq->local_table[i];
if (lid) {
rb_ary_push(ary, rb_str_new2(rb_id2name(lid)));
rb_ary_push(ary, rb_str_dup(rb_id2str(lid)));
}
}
if (env->prev_envval) {