From 08669fa435dd0114f127e642d16e61c43b435da2 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 26 Jul 2023 09:32:44 +0900 Subject: [PATCH] fix: force printf locale (#74) --- dzgui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index cc1e5ff..a638903 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=3.3.9 +version=3.3.10 aid=221100 game="dayz" @@ -1385,7 +1385,7 @@ get_dist(){ echo "$dist" else local dist=$($km_helper "$local_lat" "$local_lon" "$remote_lat" "$remote_lon") - printf "%05.0f %s" "$dist" "km" + LC_NUMERIC=C printf "%05.0f %s" "$dist" "km" fi } prepare_filters(){