diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-01 10:03:04 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-01 10:03:04 +0000 |
commit | e8aa990f92e2a150114138ebcb7b7b789736be65 (patch) | |
tree | 3b1e2b81753930b1559562897260700a84467444 | |
parent | 249f3f8361d46d3ae2f8c29c7185adf58c3b3afc (diff) | |
download | ruby-e8aa990f92e2a150114138ebcb7b7b789736be65.tar.gz |
* parse.y (rb_intern): should use mbclen instead of mblen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | parse.y | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Tue Jul 1 19:02:12 2003 WATANABE Hirofumi <eban@ruby-lang.org> + + * parse.y (rb_intern): should use mbclen instead of mblen. + Tue Jul 1 10:36:19 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net> * class.c (rb_define_class, rb_define_module): also set constant under @@ -5879,8 +5879,8 @@ rb_intern(name) } break; } - while (*m && is_identchar(*m)) { - m += mblen(m, name + last - m + 1); + while (m <= name + last && is_identchar(*m)) { + m += mbclen(*m); } if (*m) id = ID_JUNK; id |= ++last_id << ID_SCOPE_SHIFT; |