summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-01 10:03:04 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-01 10:03:04 +0000
commite8aa990f92e2a150114138ebcb7b7b789736be65 (patch)
tree3b1e2b81753930b1559562897260700a84467444 /parse.y
parent249f3f8361d46d3ae2f8c29c7185adf58c3b3afc (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.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index e87bcfec59..24382950b9 100644
--- a/parse.y
+++ b/parse.y
@@ -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;