Scripts: decode coverage sweeps as UTF-8 #2650
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2650
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2650"
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?
@luckyteagirl on GitHub · 2026-11-26 05:04 UTC · original
luckyteagirl:codex/coverage-sweep-utf8→main· +22 −1 · 2 files · 1 commits · openThe direct coverage gate decodes XCL's redirected output with the Windows process locale. XCL writes UTF-8, so a shader name containing characters that are invalid in a local code page can raise
UnicodeDecodeErrorbefore the gate reads the JSON report. Decode the sweep output as UTF-8 explicitly.What is in it
encoding="utf-8"to the live sweep subprocess.Łunder a simulated CP1252 default.Tested
b49be183, the new regression raisedUnicodeDecodeError(9 passed, 1 error in the coverage gate tests). On this branch, full Python script discovery passed 26/26 on Windows.xcl.exe, a nonexistentŁ.rpf, and CP1252 reproduced the old traceback. The fixed gate returned exit 2 and printed the Unicode path in the diagnostic without a decoding traceback. This was an error-path check, not a real shader sweep.git diff --checkpassed. The patch applies cleanly alongside the separate atomic baseline change in PR #2645. PR #2099 wraps the same subprocess call for OS errors and may need a small rebase if merged first.Regression run
Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.