mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 1 additions and 1 deletions
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
|
||||
else if (!rb_isascii(c)) {
|
||||
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 */
|
||||
hasalpha = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue