]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-134060: Don't create a certain symlink in venv if platform does not support...
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Sun, 18 May 2025 19:33:14 +0000 (20:33 +0100)
committerGitHub <noreply@github.com>
Sun, 18 May 2025 19:33:14 +0000 (22:33 +0300)
Lib/venv/__init__.py

index 15e15b7a5184c277274f962badcdcef3b081ef63..17ee28e826d5cf5c53339ffad0dc7381c5d7c6c7 100644 (file)
@@ -315,7 +315,7 @@ class EnvBuilder:
                 os.chmod(path, 0o755)
 
             suffixes = ['python', 'python3', f'python3.{sys.version_info[1]}']
-            if sys.version_info[:2] == (3, 14):
+            if sys.version_info[:2] == (3, 14) and sys.getfilesystemencoding() == 'utf-8':
                 suffixes.append('𝜋thon')
             for suffix in suffixes:
                 path = os.path.join(binpath, suffix)