From 82c82ae093a2bb5f9a1492201b5291e027d64402 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Sat, 11 Oct 2025 07:34:16 +0200 Subject: [PATCH] fixing printf failing under non-C locales Ensuring numeric values are parsed using a consistent locale. Fixes an issue where printf failed under non-C locales (e.g. fr_FR) due to the use of . as a decimal separator. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 80ceac904..602259d36 100755 --- a/install.sh +++ b/install.sh @@ -723,7 +723,7 @@ create_lxc_container() { local used_pct=$(echo "$line" | awk '{print $7}') storage_names+=("$storage_name") - printf " %d) %-15s %-8s %6.1f GB free of %6.1f GB (%s used)\n" \ + LC_ALL=C printf " %d) %-15s %-8s %6.1f GB free of %6.1f GB (%s used)\n" \ "$idx" "$storage_name" "$storage_type" "$avail_gb" "$total_gb" "$used_pct" if [[ "$storage_name" == "$DEFAULT_STORAGE" ]]; then