ruby-changes:37455
From: nobu <ko1@a...>
Date: Sat, 7 Feb 2015 14:09:46 +0900 (JST)
Subject: [ruby-changes:37455] nobu:r49536 (trunk): dir.c: fix a typo
nobu 2015-02-07 14:08:37 +0900 (Sat, 07 Feb 2015) New Revision: 49536 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49536 Log: dir.c: fix a typo * dir.c (has_magic): fix a typo, check code not c. Modified files: trunk/dir.c Index: dir.c =================================================================== --- dir.c (revision 49535) +++ dir.c (revision 49536) @@ -1226,7 +1226,7 @@ has_magic(const char *p, const char *pen https://github.com/ruby/ruby/blob/trunk/dir.c#L1226 #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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/