GNU bug report logs - #20316
24.5; `string-lessp' doesn't respect value of LC_COLLATE

Previous Next

Package: emacs;

Reported by: Alexis <flexibeast <at> gmail.com>

Date: Mon, 13 Apr 2015 05:23:01 UTC

Severity: normal

Found in version 24.5

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: Michael Albinus <michael.albinus <at> gmx.de>
To: Alexis <flexibeast <at> gmail.com>
Cc: 20316 <at> debbugs.gnu.org
Subject: bug#20316: 24.5; `string-lessp' doesn't respect value of LC_COLLATE
Date: Mon, 13 Apr 2015 08:18:21 +0200
Alexis <flexibeast <at> gmail.com> writes:

> (getenv "LC_COLLATE") => "hr_HR.UTF-8"
>
> (string-lessp "Ć" "D") => nil
> (string-lessp "Đ" "S") => nil
> (string-lessp "Š" "Z") => nil

`string-lessp' is not design to respect collation order. The docstring
speaks about lexicographoc order.

In Emacs 25.0.50, there is `string-collate-lessp', with respects your
locale settings.

Best regards, Michael.




This bug report was last modified 10 years and 120 days ago.

Previous Next


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