diff options
| author | Dominik <55330408+Dom-in@users.noreply.github.com> | 2026-11-22 11:19:40 +0000 |
|---|---|---|
| committer | Dominik <55330408+Dom-in@users.noreply.github.com> | 2026-11-22 11:27:00 +0000 |
| commit | f698bf22067aa1e08c1b957d937cb32b2c3e6674 (patch) | |
| tree | 484d0a4bbc781d04b7a39f6afe447ca5fe2bc12d /runtime/src/thread_stacks.cpp | |
| parent | bb2e18421dac527374eb837c88b5063c5d96f81f (diff) | |
tools: a path outside the console's code page no longer crashes a tool's output
On Windows a redirected stdout uses the console's ANSI code page, and python -I ignores PYTHONUTF8 and
PYTHONIOENCODING, so a caller path with a character outside that code page ended a run with
UnicodeEncodeError as soon as a tool printed it. #1406 fixed make_game.py; every CLI tool in tools/ now starts
its __main__ block the same way (stdout errors="replace").
tests/test_tool_stdout_encoding.py checks every tool's __main__ block and reruns two measured crashes
(analyze_4240_full.py, meshlet_page.py) with a private-use-named input. Found by @abilliontokens.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions