diff --git a/.changes/cli-windows-build-tools-detect-utf8.md b/.changes/cli-windows-build-tools-detect-utf8.md new file mode 100644 index 000000000..235c70076 --- /dev/null +++ b/.changes/cli-windows-build-tools-detect-utf8.md @@ -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. diff --git a/tooling/cli/src/info/env_system.rs b/tooling/cli/src/info/env_system.rs index 5c4c5b3e5..530e27fb8 100644 --- a/tooling/cli/src/info/env_system.rs +++ b/tooling/cli/src/info/env_system.rs @@ -43,6 +43,7 @@ fn build_tools_version() -> crate::Result> { "Microsoft.VisualStudio.Component.Windows10SDK.*", "-format", "json", + "-utf8", ]) .output()?; @@ -57,6 +58,7 @@ fn build_tools_version() -> crate::Result> { "Microsoft.VisualStudio.Component.Windows11SDK.*", "-format", "json", + "-utf8", ]) .output()?;