Ihor Radchenko <yanta...@gmail.com> writes: > Rudolf, can you (1) try sort in terminal to confirm that "C" locale > behaves as expected in MacOS; (2) If sort works fine, you may consider > reporting Emacs bug.
For the two examples given by Max on Linux, I get on macOS: printf 'a\nB\n' | LC_COLLATE=C sort B a printf 'a\nB\n' | LC_COLLATE=en_US.UTF-8 sort B a For the other examples mentioned, I get on macOS: printf 'a\nb\n' | LC_COLLATE=C sort a b printf 'b\na\n' | LC_COLLATE=C sort a b printf 'A\nB\n' | LC_COLLATE=C sort A B printf 'B\nA\n' | LC_COLLATE=C sort A B printf 'a\nb\n' | LC_COLLATE=C.UTF-8 sort a b printf 'b\na\n' | LC_COLLATE=C.UTF-8 sort a b printf 'A\nB\n' | LC_COLLATE=C.UTF-8 sort A B printf 'B\nA\n' | LC_COLLATE=C.UTF-8 sort A B Rudy -- "Chop your own wood and it will warm you twice." -- Henry Ford; Francis Kinloch, 1819; Henry David Thoreau, 1854 Rudolf Adamkovič <salu...@me.com> [he/him] Studenohorská 25 84103 Bratislava Slovakia