shader: decode the RDNA 2 scanner's CLI output as UTF-8 #845
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!845
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/845/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?
@lukaslw-lab on GitHub · 2026-11-23 12:02 UTC · original
lukaslw-lab:shader/rdna2-scanner-utf8→main· +15 −8 · 1 files · 1 commits · merged 2026-11-23 12:15 UTCChange
test_cli_scannerrunstools/scan_unsupported_shaders.pywithPYTHONIOENCODING=utf-8and decodes its output as UTF-8, instead oftext=Truein the locale encoding. WithPYTHONIOENCODING=utf-8on a non-UTF-8 Windows code page, the scanner printed its block progress bar as UTF-8 and the test failed to decode it (stdoutwasNone). The test now also requires\N{FULL BLOCK}, so it always covers that output. Test-only; the scanner is unchanged. Fixes #844.#704 and #531 also edit
tests/rdna2_tools_check.py, but nottest_cli_scanner.Verification
Commit
68d849aon Windows 10 22H2 (build 19045, ANSI code page 1250), Python 3.13.7.b358dc1)PYTHONIOENCODINGunsetPYTHONIOENCODING=utf-8FAILED (errors=1)PYTHONIOENCODING=utf-8:surrogateescapeFAILED (errors=1)PYTHONIOENCODING=cp1252PYTHONUTF8=1100% passed, both with
PYTHONIOENCODING=utf-8:surrogateescapeand with it unset. The whole file runs 72 tests:OK (skipped=1)both ways; the skip istest_llvm_comparison(LLVM_LIBnot set). Not run: Linux or macOS. There the locale is usually UTF-8 already, and the test now sets the child's encoding itself.Evidence and follow-up
Synthetic assembly input already in the test; no new fixture. Negative control: the base fails both UTF-8 rows above. The other
text=Truecalls in the file rundisasm_rdna2.pyandextract_shaders.py, which print only ASCII, so they are unchanged.Checklist
AI-assisted: prepared with Claude Code; the commands and results above were run on the author's PC.
🤖 Generated with Claude Code