aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorxth <xth@live.com>2021-08-01 23:36:53 +0800
committerJussi Pakkanen <jpakkane@gmail.com>2021-08-03 00:16:11 +0300
commita79980da6ba50ef9eaea396528c9c8a395c4997d (patch)
treec14077e8c4eb1c2a977505874f59d78d85fde2a8 /mesonbuild
parenta450f8c6bc59dc7a4aee513be57a1d49b2295e52 (diff)
downloadmeson-a79980da6ba50ef9eaea396528c9c8a395c4997d.zip
meson-a79980da6ba50ef9eaea396528c9c8a395c4997d.tar.gz
meson-a79980da6ba50ef9eaea396528c9c8a395c4997d.tar.bz2
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 .
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/mesonmain.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py
index 86ae973..8b7c9c1 100644
--- a/mesonbuild/mesonmain.py
+++ b/mesonbuild/mesonmain.py
@@ -82,6 +82,7 @@ def setup_vsenv() -> None:
'-requiresAny',
'-requires', 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',
'-products', '*',
+ '-utf8',
'-format',
'json'
]