From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian =?utf-8?Q?Reu=C3=9Fe?= Subject: Re: [PATCH] Fix alphabetic sorting for headlines, tags Date: Mon, 12 Feb 2018 15:54:11 +0100 Message-ID: <87sha6xnqk.fsf@wirrsal.net> References: <20180206100705.32256-1-seb@wirrsal.net> <87r2ptc813.fsf@nicolasgoaziou.fr> <87sha7g4rz.fsf@wirrsal.net> <87bmgvbiiq.fsf@nicolasgoaziou.fr> <87mv0eiomk.fsf@wirrsal.net> <87sha6uwxw.fsf@nicolasgoaziou.fr> 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]:47658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elFUo-00018k-Tt for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 09:54:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elFUl-0004fm-Iu for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 09:54:18 -0500 Received: from wirrsal.net ([188.68.36.149]:58612 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 1elFUl-0004a3-8f for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 09:54:15 -0500 In-reply-to: <87sha6uwxw.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Sebastian Reu=C3=9Fe writes: >> The test will error out if the data for the chosen locale isn=E2=80=99= t >> actually present on the system. I chose the =C2=ABen_US=C2=BB locale i= n the >> hopes that this will frequently be installed. I=E2=80=99ll leave it up= to you >> to decide whether that is acceptable. > I used "C" locale instead. I think it is available on every system. So > basically, the test checks if we are not using string< for comparison. It looks like =C2=ABstring-collate-lessp=C2=BB, when used with the POSIX = locale, is equivalent to =C2=ABstring<=C2=BB. The examples I tried out all came u= p the same, and [1] (headline =C2=ABLC_COLLATE Category in the POSIX Locale=C2=BB= ) says the POSIX collation ordering is the same as the ASCII codeset. glibc adheres to this too (cf. /usr/share/i18n/locales/POSIX). [1] In that case the extension to the test case might be better left out. When I was looking into this yesterday I noticed that glibc ships a locale definition file that specifies collation according to ISO 14651 (which most language locales derive from), but unfortunately the POSIX locale doesn=E2=80=99t use that. Kind regards, SR -- Insane cobra split the wood Trader of the lowland breed Call a jittney, drive away In the slipstream we will stay