maintainers/scripts/haskell: sort case- and locale-insensitively consistently

sort -i actually means "ignore nonprinting", not "ignore case". Also, we
need to set LC_ALL to get proper sorting for "-".
This commit is contained in:
Wolfgang Walther
2025-04-24 18:02:06 +02:00
parent e2a42c12a3
commit b2bd43391d
5 changed files with 647 additions and 647 deletions

View File

@@ -46,7 +46,7 @@ sed -r \
-e '/^with-compiler:/d' \
-e '/installed$/d' \
-e '/^$/d' \
< "${tmpfile}" | sort --ignore-case >"${tmpfile_new}"
< "${tmpfile}" | LC_ALL=C.UTF-8 sort --ignore-case >"${tmpfile_new}"
cat > $stackage_config << EOF
# Stackage $version