diff options
| author | Snooozs <0randale196@gmail.com> | 2026-11-24 17:42:14 +0100 |
|---|---|---|
| committer | Snooozs <0randale196@gmail.com> | 2026-11-24 17:42:31 +0100 |
| commit | 6c6c6ca868f9b7b864e1c3db3294a25fdc1333ee (patch) | |
| tree | 1046b8b080735bc658892ac0b3285a0a969e58c1 /runtime/test/tiny_game_exit_code_test.cpp | |
| parent | 82a2aabcc33bf296b5c2e3e4e7021fa506f8570e (diff) | |
BUILD-DOTNET-SDKS-DECODE: decode `dotnet --list-sdks` with errors="replace"
dotnet_sdk_ok() ran `dotnet --list-sdks` with text=True and no errors=
argument. The text decode uses the console code page (cp1252 on a German
Windows), so an SDK path holding a byte that code page leaves undefined
(for example a profile name with Ł, č or ď) raised UnicodeDecodeError in
the reader thread. The check then got stdout None and raised TypeError,
which the caller does not catch, so preflight stopped before the build
began. The neighbouring calls already pass errors="replace".
The new tests/test_make_game_dotnet_sdk.py runs a real python child that
writes the raw bytes, and covers an SDK 8 install, a runtime-only install,
no dotnet on PATH, and an undecodable byte with and without an SDK. On
origin/main the two undecodable-byte cases error; with the fix all five pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions