发布

  • fix(runner): remove dead locale import and harden encoding robustness

    frostbyte_neo 发布于 2026-05-06 05:46:52 +00:00

    • Remove unused import locale (dead after encoding fix, fails ruff F401)
    • Add errors="replace" to both subprocess calls for resilience against
      unexpected non-UTF-8 bytes in JVM error output
    • Guard sys.stdout.buffer access with hasattr for redirected-stdout
      environments (test fixtures, io.StringIO, etc.)
    • Add sys.stdout.buffer.flush() to ensure real-time streaming output

    Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

    下载附件