fix bat_info UTF-8 string error

" bat_info = json.loads(bat_json) " may produce error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 ...
Because the vswhere.exe's output is not utf-8 by default
Use UTF-8 encoding for vswhere.exe can fixing it .
pull/9060/head
xth 4 years ago committed by Jussi Pakkanen
parent a450f8c6bc
commit a79980da6b
  1. 1
      mesonbuild/mesonmain.py

@ -82,6 +82,7 @@ def setup_vsenv() -> None:
'-requiresAny',
'-requires', 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',
'-products', '*',
'-utf8',
'-format',
'json'
]

Loading…
Cancel
Save