ruby-changes:22822
From: nobu <ko1@a...>
Date: Fri, 2 Mar 2012 16:37:24 +0900 (JST)
Subject: [ruby-changes:22822] nobu:r34871 (trunk): * file.c (file_expand_path): use wcscasecmp().
nobu 2012-03-02 16:37:13 +0900 (Fri, 02 Mar 2012) New Revision: 34871 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34871 Log: * file.c (file_expand_path): use wcscasecmp(). Modified files: trunk/ChangeLog trunk/file.c Index: ChangeLog =================================================================== --- ChangeLog (revision 34870) +++ ChangeLog (revision 34871) @@ -1,3 +1,7 @@ +Fri Mar 2 16:37:11 2012 Nobuyoshi Nakada <nobu@r...> + + * file.c (file_expand_path): use wcscasecmp(). + Fri Mar 2 16:36:31 2012 Nobuyoshi Nakada <nobu@r...> * thread_pthread.c (native_cond_timeout): cast explicitly to suppress Index: file.c =================================================================== --- file.c (revision 34870) +++ file.c (revision 34871) @@ -17,6 +17,7 @@ #ifdef __CYGWIN__ #include <windows.h> #include <sys/cygwin.h> +#include <wchar.h> #endif #include "ruby/ruby.h" @@ -3193,7 +3194,7 @@ len = lstrlenW(wfd.cFileName); #ifdef __CYGWIN__ if (lnk_added && len > 4 && - wcsicmp(wfd.cFileName + len - 4, L".lnk") == 0) { + wcscasecmp(wfd.cFileName + len - 4, L".lnk") == 0) { wfd.cFileName[len -= 4] = L'\0'; } #else -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/