play-rig: rig-runs.csv numbers read the same on every Windows #3583

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

@⁠BaRian29 on GitHub · 2026-11-30 01:23 UTC · original
BaRian29:pr/play-rig-locale → main · +26 −12 · 1 files · 1 commits · open

play-rig: rig-runs.csv numbers read the same on every Windows

Branch: BaRian29:pr/play-rig-locale (one commit on main 41adb551)
Open: https://github.com/trustno1-coder/VIctory-NVIDIA/compare/main...BaRian29:VIctory-NVIDIA:pr/play-rig-locale

Summary

Export-Csv wrote a [double] in the PC's culture: "23,8" on a French Windows. A [double] cast then read the comma as a thousands separator, so -Compare showed 238 fps and 338 GB, and its verdict divided those wrong numbers.

Numbers are now written with a dot (ConvertTo-RunText, invariant culture) and read either way (ConvertFrom-RunText), so rows written before still count. The separators it ignores (space, no-break space, narrow no-break space) are written as regex escapes, so the script stays ASCII.

This fixes "-Compare calls a difference under 3 % noise" on such a Windows. Four tests still expect "30.0" in text that such a Windows writes as "30,0"; they are left as they are.

Testing

  • The script parses with no error (Parser::ParseFile), stays ASCII, and keeps CRLF line endings.
  • On a French Windows (fr-FR): ConvertTo-RunText 1234.5 gives 1234.5, and ConvertFrom-RunText "1 234,5" (narrow no-break space) gives 1234.5.
  • Used for the A/B runs of a French Windows PC since; -Compare read the fps and memory columns right.
**@⁠BaRian29** on GitHub · 2026-11-30 01:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3583) `BaRian29:pr/play-rig-locale` → `main` · +26 −12 · 1 files · 1 commits · open # play-rig: rig-runs.csv numbers read the same on every Windows **Branch:** `BaRian29:pr/play-rig-locale` (one commit on `main` 41adb551) **Open:** https://github.com/trustno1-coder/VIctory-NVIDIA/compare/main...BaRian29:VIctory-NVIDIA:pr/play-rig-locale ## Summary `Export-Csv` wrote a `[double]` in the PC's culture: "23,8" on a French Windows. A `[double]` cast then read the comma as a thousands separator, so `-Compare` showed 238 fps and 338 GB, and its verdict divided those wrong numbers. Numbers are now written with a dot (`ConvertTo-RunText`, invariant culture) and read either way (`ConvertFrom-RunText`), so rows written before still count. The separators it ignores (space, no-break space, narrow no-break space) are written as regex escapes, so the script stays ASCII. This fixes "-Compare calls a difference under 3 % noise" on such a Windows. Four tests still expect "30.0" in text that such a Windows writes as "30,0"; they are left as they are. ## Testing - The script parses with no error (`Parser::ParseFile`), stays ASCII, and keeps CRLF line endings. - On a French Windows (fr-FR): `ConvertTo-RunText 1234.5` gives `1234.5`, and `ConvertFrom-RunText "1 234,5"` (narrow no-break space) gives `1234.5`. - Used for the A/B runs of a French Windows PC since; `-Compare` read the fps and memory columns right.
Export-Csv wrote a [double] in the PC's culture ("23,8" on a French
Windows) and a [double] cast read the comma as a thousands separator:
-Compare showed 238 fps and 338 GB, and its verdict divided the same
wrong numbers. Numbers are written with a dot now and read either way,
so rows written before still count. Fixes "-Compare calls a difference
under 3 % noise" there; four tests still expect "30.0" in text that such
a Windows writes as "30,0".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 01:25: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/3583/head:github-bot/gh-3583'
git switch 'github-bot/gh-3583'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3583'
git switch 'github-bot/gh-3583'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3583'
git switch 'github-bot/gh-3583'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3583'
git switch 'main'
git merge --squash 'github-bot/gh-3583'
git switch 'main'
git merge --ff-only 'github-bot/gh-3583'
git switch 'main'
git merge 'github-bot/gh-3583'
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!3583
No description provided.