24 lines
807 B
Diff
24 lines
807 B
Diff
From a83c38dc192ba8ebad337f114e0b0e5bfd0eaa52 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
|
|
<alexey.pawlow@gmail.com>
|
|
Date: Thu, 17 Jun 2021 18:52:19 +0530
|
|
Subject: [PATCH 064/N] use _wcsnicmp instead wcsncasecmp
|
|
|
|
---
|
|
Modules/getpath.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/Modules/getpath.c b/Modules/getpath.c
|
|
index e05787b..2b4ae28 100644
|
|
--- a/Modules/getpath.c
|
|
+++ b/Modules/getpath.c
|
|
@@ -427,7 +427,7 @@ add_exe_suffix(wchar_t **progpath_p)
|
|
/* Check for already have an executable suffix */
|
|
size_t n = wcslen(progpath);
|
|
size_t s = wcslen(EXE_SUFFIX);
|
|
- if (wcsncasecmp(EXE_SUFFIX, progpath + n - s, s) == 0) {
|
|
+ if (_wcsnicmp(EXE_SUFFIX, progpath + n - s, s) == 0) {
|
|
return _PyStatus_OK();
|
|
}
|
|
|