bpo-28269: Replace strcasecmp with system function stricmp#13095
bpo-28269: Replace strcasecmp with system function stricmp#13095serhiy-storchaka merged 4 commits intopython:masterfrom
Conversation
|
Microsoft deprecated |
|
Just tried, MinGW also accept _stricmp. I'll use it instead. Thanks @serhiy-storchaka . |
BoboTiG
left a comment
There was a problem hiding this comment.
LGTM, thank you @gongminmin :)
@skrah, do you think it is worth deleting those lines too?
cpython/Modules/_decimal/libmpdec/vccompat.h
Lines 46 to 47 in 3880f26
And also update this comment to remove any occurrences of strcasecmp?
cpython/Modules/_decimal/libmpdec/io.c
Line 55 in 74d7f76
Co-Authored-By: Mickaël Schoentgen <[email protected]>
No, |
|
Ping? |
|
Thanks @gongminmin for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.7, 3.8. |
|
GH-14740 is a backport of this pull request to the 3.8 branch. |
…H-13095) (cherry picked from commit 05f2d84) Co-authored-by: Minmin Gong <[email protected]>
|
GH-14741 is a backport of this pull request to the 3.7 branch. |
…H-13095) (cherry picked from commit 05f2d84) Co-authored-by: Minmin Gong <[email protected]>
|
Sorry, @gongminmin and @serhiy-storchaka, I could not cleanly backport this to |
(cherry picked from commit 05f2d84) Co-authored-by: Minmin Gong <[email protected]>
This commit integrates changes originally added to the project as python-cmake-buildsystem/python-cmake-buildsystem@18d49757e (Mingw32 support, and add cmake options for disabling) Note that in more recent version of Python, this patch is obsoleted by the following commits: See python/cpython@589f89e2a (introduced in 3.3) Removed a Windows 9x trick used before LoadLibraryExW. Windows 9x has long been unsupported and the result of GetFullPathName was not even being used in the first place. See python/cpython@05f2d84ca (introduced in 3.9) bpo-28269: Replace strcasecmp with system function _stricmp. (pythonGH-13095) Co-authored-by: David Sansome <[email protected]>
This commit integrates changes originally added to the project as python-cmake-buildsystem/python-cmake-buildsystem@18d49757e (Mingw32 support, and add cmake options for disabling) Note that in more recent version of Python, this patch is obsoleted by the following commits: See python/cpython@589f89e2a (introduced in 3.3) Removed a Windows 9x trick used before LoadLibraryExW. Windows 9x has long been unsupported and the result of GetFullPathName was not even being used in the first place. See python/cpython@05f2d84ca (introduced in 3.9) bpo-28269: Replace strcasecmp with system function _stricmp. (pythonGH-13095) Co-authored-by: David Sansome <[email protected]>
This commit integrates changes originally added to the project as python-cmake-buildsystem/python-cmake-buildsystem@18d49757e (Mingw32 support, and add cmake options for disabling) Note that in more recent version of Python, this patch is obsoleted by the following commits: See python/cpython@589f89e2a (introduced in 3.3) Removed a Windows 9x trick used before LoadLibraryExW. Windows 9x has long been unsupported and the result of GetFullPathName was not even being used in the first place. See python/cpython@05f2d84ca (introduced in 3.9) bpo-28269: Replace strcasecmp with system function _stricmp. (pythonGH-13095) Co-authored-by: David Sansome <[email protected]>
This commit integrates changes originally added to the project as python-cmake-buildsystem/python-cmake-buildsystem@18d49757e (Mingw32 support, and add cmake options for disabling) Note that in more recent version of Python, this patch is obsoleted by the following commits: See python/cpython@589f89e2a (introduced in 3.3) Removed a Windows 9x trick used before LoadLibraryExW. Windows 9x has long been unsupported and the result of GetFullPathName was not even being used in the first place. See python/cpython@05f2d84ca (introduced in 3.9) bpo-28269: Replace strcasecmp with system function _stricmp. (pythonGH-13095) Co-authored-by: David Sansome <[email protected]>
The idea is from a comment in the issue. Replace strcasecmp in Python/dynload_win.c to posix stricmp,
https://bugs.python.org/issue28269