[xenia-build] Make vswhere.exe output in UTF-8 so Python doesn't fail to parse regional characters in output

This commit is contained in:
Silent
2019-06-29 13:08:54 +02:00
parent f7199f6903
commit 17924bc945

View File

@@ -96,7 +96,7 @@ def import_vs_environment():
install_path = None
env_tool_args = None
vswhere = subprocess.check_output('third_party/vswhere/vswhere.exe -version "[15,)" -latest -format json', shell=False, universal_newlines=True)
vswhere = subprocess.check_output('third_party/vswhere/vswhere.exe -version "[15,)" -latest -format json -utf8', shell=False, universal_newlines=True)
if vswhere:
vswhere = json.loads(vswhere)
if vswhere and len(vswhere) > 0: