bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#59275: Unexpected return value of `string-collate-lessp' on Mac


From: Eli Zaretskii
Subject: bug#59275: Unexpected return value of `string-collate-lessp' on Mac
Date: Tue, 15 Nov 2022 15:46:07 +0200

> From: Ihor Radchenko <yantar92@posteo.net>
> Date: Tue, 15 Nov 2022 04:08:13 +0000
> 
> I am forwarding an issue originally reported on Org mailing list.
> https://orgmode.org/list/m2ilkwso8r.fsf@me.com
> 
> On Emacs 29 (adaa2fc90e) MacOS build:
> 
> (string-collate-lessp "a" "B" "C" t)  ; => nil
> 
> On Linux:
> 
> (string-collate-lessp "a" "B" "C" t) ; => t
> 
> The return value on MacOS is unexpected.

string-collate-lessp is inherently platform- (and locale-) dependent.
Don't use it if you want consistent results across platforms and
locales.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]