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).
This commit is contained in:
Teknium 2026-08-08 11:49:17 -07:00
parent 5b5b5e8da0
commit 372b3b7bba
1 changed files with 2 additions and 0 deletions

View File

@ -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(),
)