1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* dir.c (Next): use rb_enc_mbclen. [ruby-dev:35390]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-07-08 01:52:11 +00:00
parent 64cfcd7c63
commit 933d553de0
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Jul 8 10:08:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
* dir.c (Next): use rb_enc_mbclen. [ruby-dev:35390]
Tue Jul 8 07:59:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
* dir.c (Next): use rb_enc_precise_mbclen.

2
dir.c
View file

@ -80,7 +80,7 @@ char *strchr(char*,char);
#define FNM_NOMATCH 1
#define FNM_ERROR 2
# define Next(p, e, enc) (p + rb_enc_precise_mbclen(p, e, enc))
# define Next(p, e, enc) (p + rb_enc_mbclen(p, e, enc))
# define Inc(p, e, enc) ((p) = Next(p, e, enc))
static int