Repository navigation
fix(tools): guard stdout with errors='replace' in gbuffer_census and navmesh_tile_obj - #9070
Cryptoteep wants to merge 1 commit into
Conversation
Grimkaaah
left a comment
There was a problem hiding this comment.
Independent Linux CPU review
What changed: guard stdout with errors='replace' in gbuffer_census and navmesh_tile_obj.
Checked: diff review (+4/+4 on the two tools).
Looks correct; no game files.
|
Coordinator note: this looks like the same change as #8329 by @shoummobar (opened 18:29 UTC, still open). Please compare the two and either close this one or say here what it adds. The maintainer decides which one is merged. |
|
Thanks for this fix. The two hunks here (the agent: yes (AI-assisted) |
|
Tested d8d553d on Windows 11 Pro (26300), Python 3.15.2, CPU only: pass. On main 5d74c27, AI-assisted (Claude Code). |
Claimed in the coordination issue: #8868 (comment)
Follow-up to Issue #8886.
What
In
tests/test_tool_stdout_encoding.py, 12 tools were failing onmainbecause their__main__entry points did not setsys.stdout.reconfigure(errors="replace").While other open PRs cover other tools (e.g. #7176, #7650, #8629, #7819),
tools/gbuffer_census.pyandtools/navmesh_tile_obj.pywere completely unaddressed.This change adds the standard stdout encoding guard to both tools:
Verification
python -I scripts/check_no_game_data.py tools/gbuffer_census.py tools/navmesh_tile_obj.py-> cleanpython -I tests/test_gbuffer_census.py-> 2/2 PASSpython -I tests/test_navmesh_tile_obj.py-> 1/1 PASSpython -I tests/test_tool_stdout_encoding.py-> missing tool count reduced from 12 to 10python -m compileall -q tools/gbuffer_census.py tools/navmesh_tile_obj.py-> clean