From 82c82ae093a2bb5f9a1492201b5291e027d64402 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Sat, 11 Oct 2025 07:34:16 +0200 Subject: [PATCH 1/2] 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 From dfeb670ec3a6ac0b81e45281fb2641b6ce0d904e Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sat, 11 Oct 2025 09:13:32 +0000 Subject: [PATCH 2/2] fix: force C locale for advanced storage listing --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 602259d36..b34e816a6 100755 --- a/install.sh +++ b/install.sh @@ -583,7 +583,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