dir.c: fix a typo
* dir.c (has_magic): fix a typo, check code not c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a654ee3128
commit
7645c974de
2
dir.c
2
dir.c
@ -1226,7 +1226,7 @@ has_magic(const char *p, const char *pend, int flags, rb_encoding *enc)
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
else if (!rb_isascii(c)) {
|
else if (!rb_isascii(c)) {
|
||||||
unsigned int code = rb_enc_mbc_to_codepoint(p, pend, enc);
|
unsigned int code = rb_enc_mbc_to_codepoint(p, pend, enc);
|
||||||
if (ONIGENC_IS_CODE_ALPHA(enc, c)) {
|
if (ONIGENC_IS_CODE_ALPHA(enc, code)) {
|
||||||
/* Full width alphabets */
|
/* Full width alphabets */
|
||||||
hasalpha = 1;
|
hasalpha = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user