On 08/10/2022 12:25, Ihor Radchenko wrote:
Max Nikulin writes:
When case is not ignored (4th argument is nil) locale-dependent
collation rules are used, so you get the expected result.
$ printf 'a\nB\n' | LC_COLLATE=C sort
B
a
$ printf 'a\nB\n' | LC_COLLATE=en_US.UTF-8 sort
a
B
Should we then modify the test to set locale explicitly?
Rudolf cited the context of this test and "C" locale is explicitly used
there.
IDK if it is related, but there was a recent (fixed) bug in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55787
I have not tried to find commits to check if only version sort is affected.
Note that Rudolf is using Emacs 29.
and macOS, so libc and locales version may be different as well.