@@ -34,9 +34,9 @@ callPackage ./common.nix { inherit stdenv; } {
3434 + lib.optionalString (!allLocales) ''
3535 # Check that all locales to be built are supported
3636 echo -n '${lib.concatMapStrings (s: s + " \\\n") locales}' \
37− | sort > locales-to-build.txt
37+ | sort -u > locales-to-build.txt
3838 cat ../glibc-2*/localedata/SUPPORTED | grep ' \\' \
39− | sort > locales-supported.txt
39+ | sort -u > locales-supported.txt
4040 comm -13 locales-supported.txt locales-to-build.txt \
4141 > locales-unsupported.txt
4242 if [[ $(wc -c locales-unsupported.txt) != "0 locales-unsupported.txt" ]]; then