From 7645c974de0d994be440be43bbfe9cb6206fde81 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 Feb 2015 05:08:37 +0000 Subject: [PATCH] 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 --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }