export LC_COLLATE=C and LC_ALL=C

this is to ensure alphanumeric sorting, with
capital letters first; and numbers before letters.

we always relied on this, but until now lbmk would
just assume the host is configured this way.

this fixes a longstanding design flaw in lbmk.

Signed-off-by: Leah Rowe <leah@libreboot.org>
btrfsvols
Leah Rowe 2023-11-01 07:40:13 +00:00
parent f999349526
commit dfc5423cad
1 changed files with 3 additions and 0 deletions

3
build
View File

@ -8,6 +8,9 @@
[ "x${DEBUG+set}" = 'xset' ] && set -v [ "x${DEBUG+set}" = 'xset' ] && set -v
set -u -e set -u -e
export LC_COLLATE=C
export LC_ALL=C
. "include/err.sh" . "include/err.sh"
. "include/option.sh" . "include/option.sh"