From a94859a1572194343759b0866bf6c7314808ac43 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Tue, 3 Dec 2024 20:12:18 +0900 Subject: [PATCH] change: use LC_NUMERIC --- CHANGELOG.md | 4 ++++ dzgui.sh | 4 ++-- helpers/funcs | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a47dd6..b52b56a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [5.6.0-beta.9] 2024-12-03 +### Fixed +- Normalize user locale when parsing floats + ## [5.6.0-beta.8] 2024-11-28 ### Fixed - Normalize user locale when parsing floats diff --git a/dzgui.sh b/dzgui.sh index abe92bf..5ac52ad 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=5.6.0-beta.8 +version=5.6.0-beta.9 #CONSTANTS aid=221100 @@ -572,7 +572,7 @@ fetch_helpers_by_sum(){ ["ui.py"]="1c6e5b996eccd891a3e56930e28246da" ["query_v2.py"]="55d339ba02512ac69de288eb3be41067" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" - ["funcs"]="20f25bd68cad369696a5b7ab8d8c543d" + ["funcs"]="d98d8626a1d61b2d5947b53155a14928" ["lan"]="c62e84ddd1457b71a85ad21da662b9af" ) local author="aclist" diff --git a/helpers/funcs b/helpers/funcs index 8f213ba..f8f0c2f 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -354,7 +354,7 @@ list_mods(){ base_dir=$(basename $(readlink -f $game_dir/$symlink)) size=$(du -s "$(readlink -f "$game_dir/$symlink")" | awk '{print $1}') size=$(python3 -c "n=($size/1024) +.005; print(round(n,4))") - LC_ALL=C printf "%s$sep%s$sep%s$sep%3.3f\n" "$name" "$symlink" "$base_dir" "$size" + LC_NUMERIC=C printf "%s$sep%s$sep%s$sep%3.3f\n" "$name" "$symlink" "$base_dir" "$size" done | sort -k1 fi }