summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-19 12:20:36 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-19 12:20:36 +0000
commit94d2a3513971d4ceb3b52346169afcb3cc7ad5b9 (patch)
tree5621e4f48e4afb84fa316afc80cefd7f095b45a9 /file.c
parentf19478d5e39e9512bdbc73cd6510bd341d058128 (diff)
merge revision(s) 34871: [Backport #7415]
* file.c (file_expand_path): use wcscasecmp(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@38471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/file.c b/file.c
index c1db6d70f8..50fa5c7f2c 100644
--- a/file.c
+++ b/file.c
@@ -17,6 +17,7 @@
#ifdef __CYGWIN__
#include <windows.h>
#include <sys/cygwin.h>
+#include <wchar.h>
#endif
#include "ruby/ruby.h"
@@ -3190,7 +3191,7 @@ rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_na
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