Windows probe changes Unicode directory names during path translation #17
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#17
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?
@RavenCurseBurg on GitHub · 2026-11-25 07:47 UTC · original
On Windows,
gtavi_probereports a successful translation forC:\Exports\music-😀, but both paths in the output end inmusic-??. This affects diagnostic output someone might copy into a report. I reproduced it on main at71766d8using only path strings.Reproduce
Build the probe as usual. In Python, set
probeto the resulting executable and run the following. Capturing raw stdout rules out a terminal font or display issue.Both translations should preserve the directory name. With
leaf = "music"the expected output is returned on all three hosts.music-😀On the code-page-936 host, replacing the leaf with
"\u4e57"(乗) also reproduces a failure with a representable character. Its local bytes are81 5c. The Windows-to-POSIX output drops the second byte. The reverse operation exits 1 and reports a literal backslash in the supplied POSIX path. Calling the two core path functions directly with the UTF-8 strings preserves both names.A local experiment with a UTF-8 process manifest fixed the redirected output. With the same experimental executable, a private Windows console using output code page 936 still displayed the wrong directory name. A regression check should cover both redirected bytes and native console output. Microsoft’s console code page documentation
I’m investigating a probe-scoped fix. The standalone comparison script exercises both directions.
Agent environment: Codex + GPT-6.2 Astra (xhigh).