Skip to content

Commit 3cee26a

Browse files
authored
fix(cli): use UTF-8 encoding for vswhere.exe output (#8865)
1 parent 46b6598 commit 3cee26a

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": patch:bug
3+
"@tauri-apps/cli": patch:bug
4+
---
5+
6+
On Windows, fixed `tauri info` fails to detect the build tool when the system language is CJK.

tooling/cli/src/info/env_system.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ fn build_tools_version() -> crate::Result<Vec<String>> {
4343
"Microsoft.VisualStudio.Component.Windows10SDK.*",
4444
"-format",
4545
"json",
46+
"-utf8",
4647
])
4748
.output()?;
4849

@@ -57,6 +58,7 @@ fn build_tools_version() -> crate::Result<Vec<String>> {
5758
"Microsoft.VisualStudio.Component.Windows11SDK.*",
5859
"-format",
5960
"json",
61+
"-utf8",
6062
])
6163
.output()?;
6264

0 commit comments

Comments
 (0)