[pr-fix][startup] Read UTF-8 F1 settings in the PowerShell launcher #242
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!242
Loading…
Reference in a new issue
No description provided.
Delete branch "andrewpozdnakov7-jpg/Darner:port/e541-read-utf8-launcher-settings"
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?
Contributor role (optional)
What it changes
F1 writes settings as UTF-8 without a BOM. In Windows PowerShell 5.1, the script's default text encoding can corrupt a non-ASCII setting. Decode UTF-8 explicitly and preserve the existing fallback for legacy files that contain invalid UTF-8.
Restores locally saved VIctory-NVIDIA work from December 1, 2026. Recovered revision: e54151a. Adapted by andrewpozdnakov7-jpg (GitHub profile).
How it was tested
fe99fe1onf3840d7.fe99fe1: the real warm worker found and made four early pipelines in the intended UTF-8 cache. Main used a misdecoded directory and found zero keys even though both runs exited 0. Test reportChecklist
Checked for overlap
I tested
fe99fe1dfa210389d790163efd832c457aea5d55againstf3840d73d3504c30218debfbc8795b9225447317on Chinese Windows (ANSI code page 936). I used Darner’s Rustdarner_gpu::settings::writeto save aDARNER_BENCH_CSVpath containing Chinese characters, spaces and brackets. Each unmodified PowerShell launcher read a byte-identical copy of that BOM-less UTF-8 file and started a local observer that recorded its inherited environment.On Windows PowerShell 5.1, main passed a corrupted path to the child. The PR preserved the exact path. On PowerShell 7.6.9, both revisions preserved it. All four launches exited 0 and left their settings files byte-for-byte unchanged. The observer replaced the emulator for this check.
Confirmed with a real warm worker on Windows PowerShell 5.1, system code page 1251. I saved
DARNER_CACHE_DIRin a BOM-less UTF-8 settings file with the final directory namedпроверка-中文. Two isolated caches had the same four recorded early-pipeline keys and shader data. Both runs used the identical official .02 executable, RTX 4070 Ti SUPER, andscripts/play-nvidia.ps1 -Build release -WarmUsed -PrecompileJobs 1.On main
f3840d7the script logged a different path, created a sibling directory with misdecoded characters and returned success with 0 known, 0 made. It wrote no completion marks in the intended cache. With the script fromfe99fe1the logged path matched exactly, the worker reported 4 known, 4 made, and the intended folder contained four completion marks. Both processes exited 0, so checking the exit code alone misses this regression. The separate warm-worker entry point was exercised; the game itself was not needed. Tested with Codex assistance.Thanks for testing a real warm worker. Four completion marks in the intended UTF-8 cache versus zero on main confirms the failure was more than a misprinted path. I added the result to the PR description, with the note that both processes exited 0.