GNU bug report logs - #59275
Unexpected return value of `string-collate-lessp' on Mac

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Tue, 15 Nov 2022 04:08:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 59275 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: 59275 <at> debbugs.gnu.org
Subject: Re: bug#59275: Unexpected return value of `string-collate-lessp' on
 Mac
Date: Tue, 15 Nov 2022 10:51:42 +0100
>>>>> On Tue, 15 Nov 2022 04:08:13 +0000, Ihor Radchenko <yantar92 <at> posteo.net> said:

    Ihor> Hi,
    Ihor> I am forwarding an issue originally reported on Org mailing list.
    Ihor> https://orgmode.org/list/m2ilkwso8r.fsf <at> me.com

    Ihor> On Emacs 29 (adaa2fc90e) MacOS build:

    Ihor> (string-collate-lessp "a" "B" "C" t)  ; => nil

    Ihor> On Linux:

    Ihor> (string-collate-lessp "a" "B" "C" t) ; => t

    Ihor> The return value on MacOS is unexpected.

    Ihor> See more information, including locale date, in the Org ML thread.

I think this is expected. See the long thread on emacs-devel back in
July, eg
https://lists.gnu.org/archive/html/emacs-devel/2022-07/msg00940.html

(it resulted in the addition of `string-equal-ignore-case')

Robert
-- 




This bug report was last modified 2 years and 176 days ago.

Previous Next


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