mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
249f3f8361
commit
e8aa990f92
2 changed files with 6 additions and 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>
|
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
|
* class.c (rb_define_class, rb_define_module): also set constant under
|
||||||
|
|
4
parse.y
4
parse.y
|
@ -5879,8 +5879,8 @@ rb_intern(name)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
while (*m && is_identchar(*m)) {
|
while (m <= name + last && is_identchar(*m)) {
|
||||||
m += mblen(m, name + last - m + 1);
|
m += mbclen(*m);
|
||||||
}
|
}
|
||||||
if (*m) id = ID_JUNK;
|
if (*m) id = ID_JUNK;
|
||||||
id |= ++last_id << ID_SCOPE_SHIFT;
|
id |= ++last_id << ID_SCOPE_SHIFT;
|
||||||
|
|
Loading…
Reference in a new issue