Files
MINGW-packages/mingw-w64-python/0064-use-_wcsnicmp-instead-wcsncasecmp.patch
Christoph Reiter 4177c0198b python: Update to 3.10.8
See https://github.com/msys2-contrib/cpython-mingw/pull/110

update-patches: remove git version signature to keep the diff smaller
2022-10-15 15:57:24 +02:00

24 lines
807 B
Diff

From 1a797d60b66a3152f0056e592f4a75789eedf54c 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();
}