fix: [bug] run_pipeline.py subprocess GBK encoding causes stdout=None on Windows - Closes #84 #85

Merged
pzhang_zywl merged 1 commits from dev/issue-84-encoding-fix into main 2026-06-03 14:41:22 +08:00
Owner

Summary

  • subprocess.run 调用添加 encoding='utf-8' 避免 Windows GBK 下 stdout=None 崩溃
  • run_acceptance_tests() 同样添加 utf-8 编码 + PYTHONIOENCODING env

修复类型

  • 代码级修复(UT 可验证)

Test

  • pytest 通过 (110 passed, 16 skipped, 1 预存失败 unrelated)
  • 根因明确:Windows GBK locale subprocess 管道读取线程 UnicodeDecodeError

Closes #84


[da-0603-1426]

## Summary - `subprocess.run` 调用添加 `encoding='utf-8'` 避免 Windows GBK 下 stdout=None 崩溃 - `run_acceptance_tests()` 同样添加 utf-8 编码 + PYTHONIOENCODING env ## 修复类型 - [x] 代码级修复(UT 可验证) ## Test - [x] pytest 通过 (110 passed, 16 skipped, 1 预存失败 unrelated) - [x] 根因明确:Windows GBK locale subprocess 管道读取线程 UnicodeDecodeError Closes #84 --- [da-0603-1426]
pzhang_zywl added 1 commit 2026-06-03 14:40:16 +08:00
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
pzhang_zywl merged commit 34c27cbf38 into main 2026-06-03 14:41:22 +08:00
Sign in to join this conversation.