shader: decode the RDNA 2 scanner's CLI output as UTF-8 #839
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/845"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-23T12:02:47Z.
Change
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