aboutsummaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 88cd241e1d..8e5c5c5fe4 100644
--- a/dir.c
+++ b/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;
}