Skip to content

Commit 91d71ac

Browse files
[3.14] gh-134060: Don't create a certain symlink in venv if platform does not support it (GH-134061)
1 parent 7073587 commit 91d71ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/venv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def setup_python(self, context):
315315
os.chmod(path, 0o755)
316316

317317
suffixes = ['python', 'python3', f'python3.{sys.version_info[1]}']
318-
if sys.version_info[:2] == (3, 14):
318+
if sys.version_info[:2] == (3, 14) and sys.getfilesystemencoding() == 'utf-8':
319319
suffixes.append('𝜋thon')
320320
for suffix in suffixes:
321321
path = os.path.join(binpath, suffix)

0 commit comments

Comments
 (0)