Files
OpenJarvis/tests/cli
30ac635e83 fix: force UTF-8 stdout on Windows for CJK CLI output
On Windows the default Python stdout encoding follows the system
ANSI code page (cp950 for zh-TW, cp932 for ja, cp949 for ko).
`click.echo()` then raises `UnicodeEncodeError` whenever a CJK
character lands in CLI output — `jarvis ask` returning Chinese
crashes with `'cp950' codec can't encode character '义'`.

Reconfigure `sys.stdout` and `sys.stderr` to UTF-8 with
`errors='replace'` at the `main()` entry point. Scoped to
`win32` so other platforms are untouched. Two unit tests verify
the reconfigure happens on Windows and doesn't on Linux.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 03:36:55 +00:00
..
2026-03-12 17:29:39 +00:00
2026-04-17 15:22:17 -07:00
2026-03-12 17:29:39 +00:00
2026-03-12 17:29:39 +00:00
2026-05-18 20:19:37 -07:00
2026-05-18 20:19:37 -07:00
2026-03-29 16:31:29 +05:30
2026-05-19 11:57:10 -07:00
2026-03-12 17:29:39 +00:00