From: Alexis <flexibeast@gmail.com>
To: 20316@debbugs.gnu.org
Cc: michael.albinus@gmx.de
Subject: bug#20316: 24.5; `string-lessp' doesn't respect value of LC_COLLATE
Date: Mon, 13 Apr 2015 16:42:30 +1000 [thread overview]
Message-ID: <87pp785y21.fsf@gmail.com> (raw)
In-Reply-To: <87h9sk5z6a.fsf@gmx.de>
Michael Albinus <michael.albinus@gmx.de> writes:
> Alexis <flexibeast@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.
i'm sorry, i don't follow this. Yes, the docstring talks about
lexicographic order. But i think it's reasonable for users to
expect Emacs' built-in sort functionality (e.g. `sort-lines') to
respect their current locale such that lexicographic order and
collation order are treated as basically synonymous. Unless
there's an important distinction between the two in this context
that i'm missing?
In this specific case, a user of a package i maintain was
surprised when `org-sort' didn't sort their Croatian-language Org
entries properly. Under the hood, `org-sort' uses
`string-lessp'. Is the bottom line that they'll have to wait until
at least 25.1 before Org could add conditional code to use
`string-collate-lessp', to at least DTRT for users of >25.0?
Alexis.
next prev parent reply other threads:[~2015-04-13 6:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-13 5:22 bug#20316: 24.5; `string-lessp' doesn't respect value of LC_COLLATE Alexis
2015-04-13 5:59 ` Alexis
2015-04-13 6:18 ` Michael Albinus
2015-04-13 6:42 ` Alexis [this message]
2015-04-13 6:53 ` Michael Albinus
2015-04-13 14:48 ` Eli Zaretskii
2015-04-14 0:55 ` Alexis
2015-04-14 14:57 ` Eli Zaretskii
2015-04-14 23:55 ` Alexis
2015-04-15 1:23 ` Stefan Monnier
2015-04-13 14:10 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pp785y21.fsf@gmail.com \
--to=flexibeast@gmail.com \
--cc=20316@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.