Skip to content

Source Data Ratio and Total Size do not work when system locale has comma decimal separator #4

@Astilimos

Description

@Astilimos

On a Polish Windows 11 system, trying to create a file with the source data ratio option selected produces an error:

Image

Clicking "copy command" reveals that the value is passed to the recovery-slices option with a comma:
C:\Users\redacted\Programy\ParParGUI-v0.4r2-win64\parpar.exe --input-slices 1M --recovery-slices 10,00% --filepath-format path --filepath-base C:\Users\redacted\Documents --out C:\Users\redacted\Documents\testfile.par2 --overwrite --slice-dist pow2 --seq-read-size 4M --read-buffers 8 --read-hash-queue 5 --min-chunk-size 128K --chunk-read-threads 2 --recovery-buffers 12 --md5-batch-size 8 --cpu-minchunk 128K C:\Users\redacted\Documents\testfile.txt

Related to this, trying to change the total size option results in it being zeroed out:

Image

C:\Users\redacted\Programy\ParParGUI-v0.4r2-win64\parpar.exe --input-slices 1M --recovery-slices 0K --filepath-format path --filepath-base C:\Users\redacted\Documents --out C:\Users\redacted\Documents\testfile.par2 --overwrite --seq-read-size 4M --read-buffers 8 --read-hash-queue 5 --min-chunk-size 128K --chunk-read-threads 2 --recovery-buffers 12 --md5-batch-size 8 --cpu-minchunk 128K C:\Users\redacted\Documents\testfile.txt

Both of these issues are fixed when running the program through Locale Remulator with the CodePage set to English (US):

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions