summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-08 10:56:14 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-08 10:56:14 +0000
commit66b90d0f5c38ad4d8585cfc9e4d2ca923cc08539 (patch)
tree4fa1b092f971cf48a10af796fcb443a82c89ca77 /insns.def
parent391fc1e8d9e1625c06c50e9f5b66d624e183200a (diff)
merges r24321 from trunk into ruby_1_9_1.
-- * insns.def (defineclass): preserve encoding of class/module names. [ruby-core:24600] * variable.c (rb_set_class_path_string): set class path with a string value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/insns.def b/insns.def
index 72ed335e91..f7716bfe15 100644
--- a/insns.def
+++ b/insns.def
@@ -908,7 +908,7 @@ defineclass
else {
/* new class declaration */
klass = rb_define_class_id(id, super);
- rb_set_class_path(klass, cbase, rb_id2name(id));
+ rb_set_class_path_string(klass, cbase, rb_id2str(id));
rb_const_set(cbase, id, klass);
rb_class_inherited(super, klass);
}
@@ -935,7 +935,7 @@ defineclass
else {
/* new module declaration */
klass = rb_define_module_id(id);
- rb_set_class_path(klass, cbase, rb_id2name(id));
+ rb_set_class_path_string(klass, cbase, rb_id2str(id));
rb_const_set(cbase, id, klass);
}
break;