diff options
| author | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-12-02 19:43:42 -0300 |
|---|---|---|
| committer | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-12-03 08:50:42 -0300 |
| commit | 499088156977db9771b6aefbd0a37de650700b6b (patch) | |
| tree | ee0c7a361871102b1c8c4c9edeb3df962a53267a /runtime/test/code_hooks_test.cpp | |
| parent | 5fcc7ab9cf7cd671019b5b5e84171d46323b82f4 (diff) | |
launchers: values written into PowerShell keep every single quote (LAUNCHER-SINGLE-QUOTE-ESCAPE)
PowerShell takes U+2018, U+2019, U+201A and U+201B for single quotes as
well as the ASCII one. play-nvidia.ps1's F1 restart (LEONIDA_MENU_ARGS)
and game-gate.ps1's launch.ps1 doubled only the ASCII one, so a folder
named with a typographic apostrophe ended the string early and the
command no longer parsed. game-gate.ps1 also pasted the repository,
play-script, game and data folders into quotes with no escaping at all,
and wrote launch.ps1 with Set-Content, which on Windows PowerShell is the
ANSI code page (U+201B became ?) while pwsh reads a file with no mark as
UTF-8.
Both scripts quote through CodeGeneration.EscapeSingleQuotedStringContent,
game-gate.ps1 quotes the four folders the same way, and launch.ps1 is
written as UTF-8 with its mark. tests/test_launcher_quoting.py replays
the restart's arguments into a stub and parses the launch.ps1 the gate
writes; both fail on the base scripts.
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions