Commit 88ed2cb
fix(runner): remove dead locale import and harden encoding robustness
- 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>1 parent eaa42e3 commit 88ed2cb
1 file changed
Lines changed: 7 additions & 2 deletions
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
0 commit comments