瀏覽代碼

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

Jason Tsai 1 年之前
父節點
當前提交
3cee26a58a
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 6 0
      .changes/cli-windows-build-tools-detect-utf8.md
  2. 2 0
      tooling/cli/src/info/env_system.rs

+ 6 - 0
.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.

+ 2 - 0
tooling/cli/src/info/env_system.rs

@@ -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()?;