fix(cli-apps): decode subprocess output as UTF-8

This commit is contained in:
Pei Futong
2026-07-19 16:05:26 +08:00
committed by chengyongru
parent b1232fdaf4
commit 39a952ecce
2 changed files with 27 additions and 0 deletions
+4
View File
@@ -961,6 +961,8 @@ class CliAppManager:
argv,
capture_output=True,
text=True,
encoding="utf-8",
errors="replace",
timeout=timeout,
)
logger.info("CLI Apps: command exited with code {}: {}", result.returncode, command)
@@ -1364,6 +1366,8 @@ Use the `run_cli_app` tool with `name="{name}"` for command execution. Do not in
cwd=str(cwd),
capture_output=True,
text=True,
encoding="utf-8",
errors="replace",
timeout=effective_timeout,
env=os.environ.copy(),
)