From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Sun, 18 May 2025 19:33:14 +0000 (+0100) Subject: [3.14] gh-134060: Don't create a certain symlink in venv if platform does not support... X-Git-Tag: v3.14.0b2~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91d71ac1bd68d44a8648e39e24b2f1c26575b8ba;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-134060: Don't create a certain symlink in venv if platform does not support it (GH-134061) --- diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py index 15e15b7a5184..17ee28e826d5 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -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)