[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
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
1 changed files with 1 additions and 1 deletions

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: