mirror of
https://github.com/servo/servo.git
synced 2025-06-14 11:24:33 +00:00
Fix visual_studio.py to call vswhere with -utf8 (#32949)
In Japanese Windows, `vswhere` puts cp932 string in default and fails to load json in Pyhton. This fixes it by adding `-utf8` option Signed-off-by: hatoo <hato2000@gmail.com>
This commit is contained in:
parent
3f339d6856
commit
28430bad0e
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,8 @@ def find_compatible_msvc_with_vswhere() -> Generator[VisualStudioInstallation, N
|
|||
'-format', 'json',
|
||||
'-products', '*',
|
||||
'-requires', 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',
|
||||
'-requires', 'Microsoft.VisualStudio.Component.Windows10SDK'
|
||||
'-requires', 'Microsoft.VisualStudio.Component.Windows10SDK',
|
||||
'-utf8'
|
||||
]).decode(errors='ignore')
|
||||
|
||||
for install in json.loads(output):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue