From 372b3b7bba4b2b8f5880581984eedf685056dbdf Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Sat, 8 Aug 2026 11:49:17 -0700 Subject: [PATCH] fix(cli): decode cua-driver autostart PowerShell output as UTF-8 Widen of the PowerShell codepage cluster: the autostart registration subprocess in tools_config.py was the last text=True capture in these modules still decoding with the locale code page. Standardize on encoding='utf-8', errors='replace' like the rest of the file (#53428). --- hermes_cli/tools_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hermes_cli/tools_config.py b/hermes_cli/tools_config.py index 5db37f83fa6ef..b1dd507ed1e10 100644 --- a/hermes_cli/tools_config.py +++ b/hermes_cli/tools_config.py @@ -1341,6 +1341,8 @@ def _repair_cua_driver_autostart_windows(driver_cmd: str, *, verbose: bool) -> b [ps, "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", ps_cmd], capture_output=True, text=True, + encoding="utf-8", + errors="replace", timeout=300, env=_cua_driver_env(), )