[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] bug: org-table-sort-lines does only case sensitive alphabetical
From: |
Sebastian Reuße |
Subject: |
Re: [O] bug: org-table-sort-lines does only case sensitive alphabetical sorting |
Date: |
Tue, 17 Jul 2018 08:59:17 +0200 |
User-agent: |
mu4e 1.1.0; emacs 25.3.1 |
Heikki Lehvaslaiho <address@hidden> writes:
> x86_64-apple-darwin14.5.0
Looking at the C source of ‘string-collate-lessp’ (src/fns.c), it looks
like there exists a case where Emacs itself will fall back on
‘string-lessp’ even when ‘string-collate-lessp’ is invoked.
#else /* !__STDC_ISO_10646__, !WINDOWSNT */
return Fstring_lessp (s1, s2);
#endif /* !__STDC_ISO_10646__, !WINDOWSNT */
I can’t tell what the first macro evaluates to on your platform. Might
this be the cause?
An indication for whether your Emacs uses the locale at all may be
testing the following (presuming you have the German locale data
installed and compiled):
(string-collate-lessp "ß" "ssa" "de_DE.utf-8") ; t
(string-lessp "ß" "ssa") ; nil
This is based on the German ‘ß’ ligature being sorted as if it were
equal to the string ‘ss’ (you can probably construct something analogous
using fi_FI). If the first call returns nil, your Emacs isn’t using the
locale data at all.
Kind regards,
SR
--
Insane cobra split the wood
Trader of the lowland breed
Call a jittney, drive away
In the slipstream we will stay
- [O] bug: org-table-sort-lines does only case sensitive alphabetical sorting, Heikki Lehvaslaiho, 2018/07/03
- Re: [O] bug: org-table-sort-lines does only case sensitive alphabetical sorting, Nicolas Goaziou, 2018/07/04
- Re: [O] bug: org-table-sort-lines does only case sensitive alphabetical sorting, Heikki Lehvaslaiho, 2018/07/12
- Re: [O] bug: org-table-sort-lines does only case sensitive alphabetical sorting, Nicolas Goaziou, 2018/07/14
- Re: [O] bug: org-table-sort-lines does only case sensitive alphabetical sorting, Sebastian Reuße, 2018/07/14
- Re: [O] bug: org-table-sort-lines does only case sensitive alphabetical sorting, Heikki Lehvaslaiho, 2018/07/17
- Re: [O] bug: org-table-sort-lines does only case sensitive alphabetical sorting,
Sebastian Reuße <=
- Re: [O] bug: org-table-sort-lines does only case sensitive alphabetical sorting, Heikki Lehvaslaiho, 2018/07/19
- Re: [O] bug: org-table-sort-lines does only case sensitive alphabetical sorting, Sebastian Reuße, 2018/07/19