MicrosoftGame.config: attribute values with their character references replaced #52
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!52
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/52/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?
@gefydev on GitHub · 2026-11-22 22:35 UTC · original
gefydev:xml-attr-entities→main· +50 −1 · 1 files · 1 commits · merged 2026-11-22 22:40 UTCxml_attrs(launcher.rs) returns attribute values as they are written inMicrosoftGame.config. A&in an attribute has to be written&, so since9a15c53a game called "Ratchet & Clank" getsXCL – Ratchet & Clankas its window title. The same reader gives theExecutable Namevalues, and an escaped character there names a file that doesn't exist.Values now go through a small
xml_unescape: the five named references (&<>"') and numeric ones (','). Anything that isn't a valid reference (a bare&, ,&#xZZ;) stays as written.Validation
attribute_values_have_their_character_references_replaced, and a&case indisplay_name_is_the_shell_name_unless_it_is_a_resource. Both fail onmainand pass with the change.cargo test -p xcl --lib: 340 passed, 0 failed, on Windows GNU under Wine.@ivall on GitHub · 2026-11-22 22:41 UTC · original
Thanks, merged, and good catch on my
9a15c53!The decoder looks right to me:
&or stays as written;'with an upper-case X stays too, which matches XML, where hex references take a lower-casex.The values it touches are the
Executablenames, theIdentityname and the display name. Of those, only the display name and the exe names can contain a&; package identities can't.All tests pass with the MSVC toolchain on Windows: 343 lib tests with your new one, plus the e2e test title. My four titles' configs have no
&at all, so nothing changes for them.