From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian =?utf-8?Q?Reu=C3=9Fe?= Subject: Re: bug: org-table-sort-lines does only case sensitive alphabetical sorting Date: Tue, 17 Jul 2018 08:59:17 +0200 Message-ID: <87y3ea4abe.fsf@wirrsal.net> References: <87sh4zrn7i.fsf@nicolasgoaziou.fr> <87bmbaw5cf.fsf@nicolasgoaziou.fr> <87efg6ov77.fsf@wirrsal.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffJxF-0003nA-9J for emacs-orgmode@gnu.org; Tue, 17 Jul 2018 02:59:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffJxB-0002at-Di for emacs-orgmode@gnu.org; Tue, 17 Jul 2018 02:59:25 -0400 Received: from wirrsal.net ([188.68.36.149]:54058 helo=mail.wirrsal.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ffJxB-0002Z2-3L for emacs-orgmode@gnu.org; Tue, 17 Jul 2018 02:59:21 -0400 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Heikki Lehvaslaiho Cc: emacs-orgmode@gnu.org, Nicolas Goaziou Heikki Lehvaslaiho writes: > x86_64-apple-darwin14.5.0 Looking at the C source of =E2=80=98string-collate-lessp=E2=80=99 (src/fn= s.c), it looks like there exists a case where Emacs itself will fall back on =E2=80=98string-lessp=E2=80=99 even when =E2=80=98string-collate-lessp=E2= =80=99 is invoked. #else /* !__STDC_ISO_10646__, !WINDOWSNT */ return Fstring_lessp (s1, s2); #endif /* !__STDC_ISO_10646__, !WINDOWSNT */ I can=E2=80=99t 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 "=C3=9F" "ssa" "de_DE.utf-8") ; t (string-lessp "=C3=9F" "ssa") ; nil This is based on the German =E2=80=98=C3=9F=E2=80=99 ligature being sorte= d as if it were equal to the string =E2=80=98ss=E2=80=99 (you can probably construct some= thing analogous using fi_FI). If the first call returns nil, your Emacs isn=E2=80=99t usi= ng the locale data at all. Kind regards, SR --=20 Insane cobra split the wood Trader of the lowland breed Call a jittney, drive away In the slipstream we will stay