[Python-checkins] bpo-46217: Revert use of Windows constant that is newer than what we support (GH-30473)

zooba webhook-mailer at python.org
Fri Jan 7 19:07:01 EST 2022


https://github.com/python/cpython/commit/d81182b8ec3b1593daf241d44757a9fa68fd14cc
commit: d81182b8ec3b1593daf241d44757a9fa68fd14cc
branch: main
author: Steve Dower <steve.dower at python.org>
committer: zooba <steve.dower at microsoft.com>
date: 2022-01-08T00:06:53Z
summary:

bpo-46217: Revert use of Windows constant that is newer than what we support (GH-30473)

files:
A Misc/NEWS.d/next/Windows/2022-01-07-22-55-11.bpo-46217.tgJEsB.rst
M Python/fileutils.c

diff --git a/Misc/NEWS.d/next/Windows/2022-01-07-22-55-11.bpo-46217.tgJEsB.rst b/Misc/NEWS.d/next/Windows/2022-01-07-22-55-11.bpo-46217.tgJEsB.rst
new file mode 100644
index 0000000000000..78b3cd01a03f6
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2022-01-07-22-55-11.bpo-46217.tgJEsB.rst
@@ -0,0 +1,2 @@
+Removed parameter that is unsupported on Windows 8.1 and early Windows 10
+and may have caused build or runtime failures.
diff --git a/Python/fileutils.c b/Python/fileutils.c
index d570be5577ae9..151c6feb2ebe1 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -2129,7 +2129,7 @@ join_relfile(wchar_t *buffer, size_t bufsize,
 {
 #ifdef MS_WINDOWS
     if (FAILED(PathCchCombineEx(buffer, bufsize, dirname, relfile, 
-        PATHCCH_ALLOW_LONG_PATHS | PATHCCH_FORCE_ENABLE_LONG_NAME_PROCESS))) {
+        PATHCCH_ALLOW_LONG_PATHS))) {
         return -1;
     }
 #else



More information about the Python-checkins mailing list