mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #483] [MERGED] TEST-NATIVE-TOOL-PATHS-UTF8: exercise narrow ANSI short-name path on UTF-8 Windows hosts #533
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#533
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/483
Author: @xroneyaa
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:fix/native-tool-paths-utf8-acp📝 Commits (1)
fbbdb09tests: exercise narrow ANSI short-name path on UTF-8 Windows hosts📊 Changes
1 file changed (+8 additions, -2 deletions)
View changed files
📝
tests/test_native_tool_paths.py(+8 -2)📄 Description
Claimed in the coordination issue as: TEST-NATIVE-TOOL-PATHS-UTF8
What and why
scripts/run_gpu_tests.py:native_folder(path, ansi="mbcs")exposesansispecifically so tests can force a narrow code page. On Windows systems configured with UTF-8 as the active ANSI code page (GetACP() == 65001),"mbcs"encodes private-use characters cleanly without raisingUnicodeEncodeError, sotest_a_folder_outside_the_code_page_gets_its_short_name_or_nonereturnedworkunchanged and failed its assertion instead of testing 8.3 short-name resolution.This passes
ansi="cp1252"in that test (and verifiesnative.encode("cp1252")), and addstest_a_utf8_code_page_keeps_non_ascii_pathsto confirm UTF-8 code pages keep paths outside narrow legacy code pages intact.Tested
python -I tests/test_native_tool_paths.py(Windows 11, ACP=65001) -> Ran 9 tests: 6 passed (test_a_folder_outside_the_code_page_gets_its_short_name_or_noneandtest_a_utf8_code_page_keeps_non_ascii_pathsboth pass), 3 skipped (needsspirv-asandspirv-val)python -I scripts/check_no_game_data.py tests/test_native_tool_paths.py-> exit 0GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed (n/a — no translator rule added).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.