Files
hermes-agent/cron
liuhao1024 00ecaf7721 fix(cron): decode the Windows bot-chat lane as the UTF-8 the child writes
The bot-chat delivery child is guaranteed UTF-8 on Windows (hermes_cli
reconfigures its streams via hermes_bootstrap even under
PYTHONIOENCODING=cp1252), but the gateway parent is not started in UTF-8
mode — its env overlay sets only PYTHONIOENCODING, which rebinds the
parent's own streams but does not change the locale codec text=True picks.
The delivery pipes were therefore decoded with the ANSI code page (cp1252):
an accented reply came back mojibake'd, and bytes undefined in cp1252
killed the reader thread, losing the captured reply and the failure
diagnostic while the delivery still booked as delivered (#115894).

Pin encoding='utf-8' on the win32 branch only — on POSIX the child keeps
the locale codec, so the locale default stays correct there (#66566) —
mirroring the win32 branch of the no_agent script lane (#45099).
2026-09-20 00:06:46 -07:00
..