Skip to content

Commit 68bb4de

Browse files
committed
Specify encoding in Popen. Fixes pypa#12070.
1 parent bc19509 commit 68bb4de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pip/_internal/utils/subprocess.py

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def call_subprocess(
146146
stderr=subprocess.STDOUT if not stdout_only else subprocess.PIPE,
147147
cwd=cwd,
148148
env=env,
149+
encoding='utf-8',
149150
errors="backslashreplace",
150151
)
151152
except Exception as exc:

0 commit comments

Comments
 (0)