Preserve Unicode paths in the Windows diagnostic probe #18
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/JamesCicada--GTAVI-Recomp!18
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/18/head"
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?
@RavenCurseBurg on GitHub · 2026-11-25 08:23 UTC · original
RavenCurseBurg:fix/probe-unicode→main· +168 −26 · 7 files · 1 commits · merged 2026-11-25 12:51 UTCFixes #17.
On Windows,
gtavi_probe --to-posixcould print a different directory name and still exit successfully. On code page 936, even the representable character乗caused the reverse translation to reject a valid POSIX path.The Windows entry point now reads wide arguments and passes UTF-8 to the existing path translator. Translations and errors go to the native console through
WriteConsoleW, or to a redirected stream as UTF-8. The probe leaves the console code page alone. A new CTest exercises both translation directions, a Unicode mount override and a usage error. All inputs are synthetic path strings.Verification
Agent environment: Codex + GPT-6.2 Astra (xhigh).