Commit 2934fd66 authored by Vinay Sajip's avatar Vinay Sajip

Closes #25185: merged fix from 3.4.

parents 0b40aab6 f223c532
...@@ -465,7 +465,9 @@ def venv(known_paths): ...@@ -465,7 +465,9 @@ def venv(known_paths):
config_line = re.compile(CONFIG_LINE) config_line = re.compile(CONFIG_LINE)
virtual_conf = candidate_confs[0] virtual_conf = candidate_confs[0]
system_site = "true" system_site = "true"
with open(virtual_conf) as f: # Issue 25185: Use UTF-8, as that's what the venv module uses when
# writing the file.
with open(virtual_conf, encoding='utf-8') as f:
for line in f: for line in f:
line = line.strip() line = line.strip()
m = config_line.match(line) m = config_line.match(line)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment