mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #1269] tests: check paths with non-ASCII characters in the child's own encoding (TEST-NON-ASCII-PATHS) #1300
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#1300
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/1269
Author: @TheGeogeo
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:test/non-ascii-paths📝 Commits (1)
1e9c868tests: check paths with non-ASCII characters in the child's own encoding (TEST-NON-ASCII-PATHS)📊 Changes
5 files changed (+21 additions, -12 deletions)
View changed files
📝
tests/test_build_runtime_fallback.py(+5 -2)📝
tests/test_gamedata_blobs.py(+4 -2)📝
tests/test_gamedata_sps1.py(+6 -4)📝
tests/test_guest_scene_reference.py(+3 -2)📝
tests/test_script_qtable.py(+3 -2)📄 Description
Claimed in the coordination issue as: TEST-NON-ASCII-PATHS — https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144437085
What and why
Five tests fail on Windows when the temp folder's name has a non-ASCII character, as under an accented user name. Four decode a tool's piped output as UTF-8, while a child started with
-Iwrites the ANSI code page, so the path they assert is never found.test_build_runtime_fallback.pydecodes PowerShell's OEM output with the ANSI code page and stops on a decoding error or a wrong path.Each of these children now writes UTF-8 (
-X utf8, which-Ikeeps, or[Console]::OutputEncodingin the PowerShell probe). The cases put\u00f8in their own path, so the fault shows with an ASCII temp folder too. No tool changes.Tested
On Windows 11, Python 3.12.4, on
mainat6261ca91(1e9c868c; the ANSI and OEM code pages are 1252 and 850):TEMPset to a folder whose name has accents and spaces. On66d4f5aaall five failed there and passed with an ASCII folder.mainon its own.test_tool_stdout_encoding.py,test_text_write_line_endings.py,test_docs_links.py,test_docs_cli_flags.py,test_docs_encoding.py,compileall,git diff --checkand the no-game-data check passed (before this rebase).GPUs tested: n/a (CPU-only synthetic tests).
AI-assisted: yes (Claude Code).
Checklist
mainand merges cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.