Subject: Re: bug#20316: 24.5; `string-lessp' doesn't respect value of LC_COLLATE

From: Michael Albinus <[email-masked]>
Date: Mon, 13 Apr 2015 08:18:21 +0200

Alexis <[email-masked]> 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.