mirror of https://gitlab.com/ita1024/waf.git
Handle vswhere output encodings in Python2 #1965
This commit is contained in:
parent
86134af9fb
commit
07c47309de
|
@ -456,6 +456,8 @@ def gather_vswhere_versions(conf, versions):
|
|||
Logs.debug('msvc: vswhere.exe failed %s', e)
|
||||
return
|
||||
|
||||
if sys.version_info[0] < 3:
|
||||
txt = txt.decode(sys.stdout.encoding or 'windows-1252')
|
||||
arr = json.loads(txt)
|
||||
arr.sort(key=lambda x: x['installationVersion'])
|
||||
for entry in arr:
|
||||
|
|
Loading…
Reference in New Issue