GNU bug report logs - #31318
emacs-26 fns-tests-collate-sort failure on glibc 2.27

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Mon, 30 Apr 2018 17:37:01 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 31318 <at> debbugs.gnu.org
Subject: bug#31318: emacs-26 fns-tests-collate-sort failure on glibc 2.27
Date: Mon, 30 Apr 2018 17:39:57 -0700
[Message part 1 (text/plain, inline)]
On 04/30/2018 12:50 PM, Eli Zaretskii wrote:
>
> you are saying that 'ls' now sorts differently in UTF-8
> locales on Fedora 28?  That is, it no longer ignores punctuation in
> file names?  Doesn't that cause user outcry?

Yes, that's what I'm saying, at least for en_US.utf8. I haven't heard 
any user outcry. Not that I've been listening for one....

> This is backwards: Windows needs enu_USA, not en_US.UTF-8 (which is
> not supported on Windows).

Thanks, that was a silly typo. Revised patch attached, for the emacs-26 
branch.

> Why did they change the collation order?


To be more consistent with other platforms, as I understand it. The idea 
is to do collation consistent with ISO/IEC 14651 
<https://www.iso.org/standard/68309.html>. For more details, please see 
<https://sourceware.org/bugzilla/show_bug.cgi?id=14095>.

Regardless of whether one thinks the change was a good idea, the Emacs 
tests should be portable to any POSIX platform, and since POSIX does not 
specify how the en_US.utf8 locale works the tests should not insist on 
either the old glibc implementation or the new one.

[0001-Port-collation-tests-to-glibc-2.27.patch (text/x-patch, attachment)]

This bug report was last modified 6 years and 35 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.