Read UTF-8 settings in the PowerShell launcher #4798
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4798"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T09:06:10Z.
What it changes
The F1 menu writes
victory-settings.txtas 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.ps1now 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
v2026.11.30.03andmain5fabb46echanged a non-ASCII bindings filename in UTF-8 without a BOM. The other three formats read correctly.e54151a32f6cb6b82d9865604785d984018c34c6kept the filename exact in UTF-8 with and without a BOM, UTF-16LE with a BOM, and Windows-1251.-NoMenustill skips the saved file. The full script parsed andcargo xtask policy --stagedpassed for the one changed file.mainhas five existing Clippy errors. Main CI / check · Shared lint fix #4707Checked for overlap
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.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.