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 /parse.y | |
parent | 249f3f8361d46d3ae2f8c29c7185adf58c3b3afc (diff) |
* 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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |