* tests/sort/sort-locale.sh: C.UTF-8 has a UTF-8 codeset but the
collation rules of C, so add a case ensuring the ordering there stays
byte-wise rather than following the linguistic rules exercised for
en_US.iso8859-1 and fr_FR.UTF-8 above.
Link: https://github.com/coreutils/coreutils/pull/323
# the opposite of the C/byte order
fi
+# C.UTF-8 has a UTF-8 codeset but the collation rules of C,
+# so ordering must stay byte-wise there.
+export LC_ALL=C.UTF-8
+if test "$(locale charmap 2>/dev/null)" = UTF-8; then
+ printf 'aaé\naaf\nAAF\n' > in || framework_failure_
+ printf 'AAF\naaf\naaé\n' > exp || framework_failure_
+ sort in > out || fail=1
+ compare exp out || fail=1
+fi
+
Exit $fail