mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 23:40:52 +08:00
`deeptutor start` relays child output with `print()`, which re-encodes through the console's own codec. On cp950/cp936/cp932 the `✓` in Next.js's startup banner raised UnicodeEncodeError, killed the relay thread, and the session went silent for good — the app kept serving, so it read as a dead frontend. The child side was already covered (`PYTHONIOENCODING=utf-8:replace` in `common_env`, `errors="replace"` on the pipes); only the parent's own stdout was strict. Relax it once at startup so every line the launcher prints — relayed or its own translated status text — degrades instead of raising.