fix(cli): use UTF-8 encoding for vswhere.exe output (#8865)

This commit is contained in:
Jason Tsai 2024-02-15 22:55:31 +08:00 committed by GitHub
parent 46b6598a94
commit 3cee26a58a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
On Windows, fixed `tauri info` fails to detect the build tool when the system language is CJK.

View File

@ -43,6 +43,7 @@ fn build_tools_version() -> crate::Result<Vec<String>> {
"Microsoft.VisualStudio.Component.Windows10SDK.*",
"-format",
"json",
"-utf8",
])
.output()?;
@ -57,6 +58,7 @@ fn build_tools_version() -> crate::Result<Vec<String>> {
"Microsoft.VisualStudio.Component.Windows11SDK.*",
"-format",
"json",
"-utf8",
])
.output()?;