Read UTF-8 settings in the PowerShell launcher #4799

Open
github-bot wants to merge 1 commit from github-bot/gh-4798 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 09:06 UTC · original
andrewpozdnakov7-jpg:codex2/fix/launcher-utf8-settings → main · +10 −1 · 1 files · 1 commits · open

What it changes

The F1 menu writes victory-settings.txt as UTF-8 without a BOM. On Windows PowerShell 5.1, the script launcher reads an unmarked file in the Windows code page and can change the characters in a saved path, including a custom keyboard bindings filename.

play-nvidia.ps1 now reads UTF-8 with BOM detection and falls back to the existing reader if UTF-8 decoding fails. A matching BOM still selects UTF-8 or UTF-16LE.

How it was tested

  • GPU and profile: the settings check uses synthetic text files on Windows PowerShell 5.1.19041.6456 with code page 1251. No game or GPU run.
  • Before: the exact launcher blocks at v2026.11.30.03 and main 5fabb46e changed a non-ASCII bindings filename in UTF-8 without a BOM. The other three formats read correctly.
  • After: e54151a32f6cb6b82d9865604785d984018c34c6 kept the filename exact in UTF-8 with and without a BOM, UTF-16LE with a BOM, and Windows-1251. -NoMenu still skips the saved file. The full script parsed and cargo xtask policy --staged passed for the one changed file.
  • CI on main has five existing Clippy errors. Main CI / check · Shared lint fix #4708

Checked for overlap

  • I searched issues and PRs for the symptom and reviewed open PRs touching the script. Related: #2868 and #4191 change how saved options are applied. #4796 handles a BOM in the compiled launcher and the F1 writer.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 09:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4798) `andrewpozdnakov7-jpg:codex2/fix/launcher-utf8-settings` → `main` · +10 −1 · 1 files · 1 commits · open ## What it changes The F1 menu writes `victory-settings.txt` as UTF-8 without a BOM. On Windows PowerShell 5.1, the script launcher reads an unmarked file in the Windows code page and can change the characters in a saved path, including a custom keyboard bindings filename. `play-nvidia.ps1` now reads UTF-8 with BOM detection and falls back to the existing reader if UTF-8 decoding fails. A matching BOM still selects UTF-8 or UTF-16LE. ## How it was tested - GPU and profile: the settings check uses synthetic text files on Windows PowerShell 5.1.19041.6456 with code page 1251. No game or GPU run. - Before: the exact launcher blocks at `v2026.11.30.03` and `main` `5fabb46e` changed a non-ASCII bindings filename in UTF-8 without a BOM. The other three formats read correctly. - After: `e54151a32f6cb6b82d9865604785d984018c34c6` kept the filename exact in UTF-8 with and without a BOM, UTF-16LE with a BOM, and Windows-1251. `-NoMenu` still skips the saved file. The full script parsed and `cargo xtask policy --staged` passed for the one changed file. - CI on `main` has five existing Clippy errors. [Main CI / check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) · [Shared lint fix #4708](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4708) ## Checked for overlap - [x] I searched issues and PRs for the symptom and reviewed open PRs touching the script. Related: #2868 and #4191 change how saved options are applied. #4796 handles a BOM in the compiled launcher and the F1 writer. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 09:10:57 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4799/head:github-bot/gh-4798'
git switch 'github-bot/gh-4798'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4798'
git switch 'github-bot/gh-4798'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4798'
git switch 'github-bot/gh-4798'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4798'
git switch 'main'
git merge --squash 'github-bot/gh-4798'
git switch 'main'
git merge --ff-only 'github-bot/gh-4798'
git switch 'main'
git merge 'github-bot/gh-4798'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4799
No description provided.