Repository navigation
Conversation
…h_tile_obj The three tools landed in ItsNotRexed#6698, ItsNotRexed#6726 and ItsNotRexed#6725 without the sys.stdout.reconfigure(errors="replace") block every __main__ starts with, so test_tool_stdout_encoding is red on main for them. A redirected stdout under python -I uses the ANSI code page on Windows and dies with UnicodeEncodeError on a path outside it. Co-Authored-By: Claude <noreply@anthropic.com>
…7589 ItsNotRexed#7589 (opened earlier) already guards stdout in those two tools; this branch keeps only div_fixup_diff, which ItsNotRexed#7589 does not cover. Co-Authored-By: Claude <noreply@anthropic.com>
|
Applied alone on a clean The remaining offenders on Linux, 4 cores, Python 3.14.7, no game files. |
|
Tested d8183ff on Arch Linux, Python 3.14.10, CPU only: pass — tests/test_div_fixup_diff.py 25/25 OK; --help exit 0 under utf8=0; compileall + check_no_game_data clean. Negative control: base tool → the unguarded list gains div_fixup_diff; restored, clean. The remaining 9 unguarded tools are #7589's scope (verified present there). No game files. AI-assisted. |
Claim: #7496 (comment) (also noted in #7599)
tests/test_tool_stdout_encoding.pyis red on main (6a42995) for eleven tools. #7589 (opened earlier) guards ten of them. This PR adds the sametry: sys.stdout.reconfigure(errors="replace")block thatnavmesh_cell_fit.pyuses to the eleventh,tools/div_fixup_diff.py(merged without it in #6698).The first revision also covered
gbuffer_censusandnavmesh_tile_obj. Those are now dropped because #7589 already does them, so the two PRs touch no common file.Related: #7589 (no common files). #6508, #7032, #7152 and #7174 each cover a subset of #7589's tools.
Tested
Linux (Ubuntu, Python 3.12.3), CPU only, no game files, no GPU needed:
python -I tests/test_tool_stdout_encoding.py:OKpython -I tests/test_div_fixup_diff.py: OKpython -I -X utf8=0 tools/div_fixup_diff.py --help: exit 0scripts/check_no_game_data.pyon the changed file: cleanAI-assisted (Claude Code).
Generated with Claude Code