Files
5cd7c7e690 fix(backend): decode grep and shell output off the host code page (#2178)
* fix(backend): decode grep and shell output off the host code page

Chinese Windows decodes ripgrep and execute pipes as cp936, which crashes grep and silently drops UTF-8 command output. Patch both at startup so an Octop release fixes #1959 without a new harness build.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(backend): expect the locale code page to win over GBK text

GitHub Windows is cp1252, which accepts the GBK bytes of 中文测试, so those tests were asserting a Chinese round-trip the decoder must not produce. Keep a GBK-only byte that cp1252 rejects.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: jubaoliang <jubaoliang@tencent.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 21:49:15 +08:00
..