Repository navigation
Commit 3ab1b98
fix(str_replace_editor): handle non-UTF-8 subprocess output on Windows
Subprocess output decoded with bare .decode() crashed on Windows when
the system code page produced non-UTF-8 bytes (e.g. GBK-encoded Chinese
filenames or flake8 messages). Decode explicitly with errors="replace"
in the flake8() and directory-view paths.
Fixes #58
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 69b2610 commit 3ab1b98
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
492 | 493 | | |
493 | 494 | | |
494 | 495 | | |
495 | | - | |
496 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
497 | 499 | | |
498 | 500 | | |
499 | 501 | | |
| |||
0 commit comments