upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/test_run_gpu_tests_python_assembler.py
diff options
context:
space:
mode:
authorPierreEbele <127682386+PierreEbele@users.noreply.github.com>2026-11-24 22:02:05 +0000
committerPierreEbele <127682386+PierreEbele@users.noreply.github.com>2026-11-26 16:58:20 +0100
commit82d0dfcc40f5af0a72cc99d247c9fa707284bae6 (patch)
treed5c2a18cb0ca12559109d1743a237a9ef4e5bd5b /tests/test_run_gpu_tests_python_assembler.py
parent246791612080cae89dc40cd20c5cdb8d92f90066 (diff)
make_game: a folder chosen in kdialog/zenity whose name is not valid in the locale encoding no longer stops --pick (MAKE-GAME-PICK-FSDECODE)
native_ask ran kdialog/zenity with subprocess.run(text=True), so a folder whose name the locale encoding cannot decode made the call raise UnicodeDecodeError, which pick_game does not catch (it only catches OSError). The dialog's answer is now read as bytes and decoded with os.fsdecode, whose surrogateescape str round-trips through os.fsencode to the same bytes the tool printed; the return codes keep their meaning. print()ing that str on a UTF-8 terminal raises UnicodeEncodeError, so the log lines about the chosen folder go through the new show_path(), which shows the undecodable bytes escaped; the path handed to the build is untouched. tests/test_make_game_pick_fsdecode.py covers both with a stand-in dialog printing raw bytes (python -I, standard library only). AI-assisted. Co-Authored-By: Mistral Vibe <vibe@mistral.ai> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions