Skip to content

Commit 19262bb

Browse files
Pass -utf8 to vswhere (#429)
## Summary See: #107
1 parent d9ff11c commit 19262bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpython-windows/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ def find_vs_path(path, msvc_version):
240240
p = subprocess.check_output(
241241
[
242242
str(vswhere),
243+
"-utf8",
243244
# Visual Studio 2019.
244245
"-version",
245246
version,
@@ -250,7 +251,6 @@ def find_vs_path(path, msvc_version):
250251
]
251252
)
252253

253-
# Strictly speaking the output may not be UTF-8.
254254
p = pathlib.Path(p.strip().decode("utf-8"))
255255

256256
p = p / path

0 commit comments

Comments
 (0)