Files
searxng-use-cli/tests
thzxx ea7a60a460 fix(test): subprocess 显式指定 encoding=utf-8,修复 Windows GBK 解码崩溃
_run_cli 辅助函数的 subprocess.run 用 text=True 但未指定 encoding,Windows 中文系统默认用 GBK 解码子进程输出,--help 的非 ASCII 字符(box-drawing/em-dash)触发 UnicodeDecodeError。显式指定 encoding='utf-8' 与脚本的 force_utf8_stdout() 对齐。

测试: 362/362 全部通过
2026-08-01 20:57:08 +08:00
..