From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.bugs Subject: bug#20316: 24.5; `string-lessp' doesn't respect value of LC_COLLATE Date: Mon, 13 Apr 2015 16:42:30 +1000 Message-ID: <87pp785y21.fsf@gmail.com> References: <87twwk61re.fsf@gmail.com> <87h9sk5z6a.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1428907400 15614 80.91.229.3 (13 Apr 2015 06:43:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2015 06:43:20 +0000 (UTC) Cc: michael.albinus@gmx.de To: 20316@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 13 08:43:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YhY5N-0000R6-56 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 08:43:09 +0200 Original-Received: from localhost ([::1]:47274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhY5M-0003ND-AO for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 02:43:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhY5J-0003N8-HP for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 02:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhY5G-0005F8-AL for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 02:43:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhY5G-0005F4-7q for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 02:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YhY5F-0007i7-US for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 02:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2015 06:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20316-submit@debbugs.gnu.org id=B20316.142890736629587 (code B ref 20316); Mon, 13 Apr 2015 06:43:01 +0000 Original-Received: (at 20316) by debbugs.gnu.org; 13 Apr 2015 06:42:46 +0000 Original-Received: from localhost ([127.0.0.1]:54349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YhY4z-0007h9-F7 for submit@debbugs.gnu.org; Mon, 13 Apr 2015 02:42:45 -0400 Original-Received: from mail-pd0-f180.google.com ([209.85.192.180]:36796) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YhY4w-0007go-Tr for 20316@debbugs.gnu.org; Mon, 13 Apr 2015 02:42:43 -0400 Original-Received: by pdea3 with SMTP id a3so97066469pde.3 for <20316@debbugs.gnu.org>; Sun, 12 Apr 2015 23:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type:content-transfer-encoding; bh=vOk0entyCuZUo4FIBM7m0q5EohJ1pzr+90idcop5EqA=; b=IFhJt7Ht5H5vANsxvitcD1Lg0a5b3YzIqGuea/JqzzFGYYk3nE/i7hHKnLDqrAzX6N NjIR7uwLQPzTn84dJB+eiUOzzSUSxDg+YnUGt3C8ia8q//ojKkOo1NM1z5csuroXsmyo /qrRhpMfY15a7KhDXrydjSHS2+BC3EQHEAxtjWV+3ZcOLTNW6+LKSgJnd0E7vOPPakDT 2H++8aS8/0oUlyYDZ1BKSttF3sYbpXroBNe5UJMWVxcxm2q1TJpZZYYoIbD4BZdbpucl mcFYRF56m+w/prbiFTc99DP3tNTUHS2XPDp9w+Xswbhd+ikYDZuJ57f4HEPZygGQftVS garA== X-Received: by 10.68.68.208 with SMTP id y16mr23910359pbt.34.1428907357030; Sun, 12 Apr 2015 23:42:37 -0700 (PDT) Original-Received: from localhost (ppp118-209-46-94.lns20.mel4.internode.on.net. [118.209.46.94]) by mx.google.com with ESMTPSA id om4sm6119433pdb.68.2015.04.12.23.42.34 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 12 Apr 2015 23:42:36 -0700 (PDT) In-reply-to: <87h9sk5z6a.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101464 Archived-At: Michael Albinus writes: > Alexis writes: > >> (getenv "LC_COLLATE") =3D> "hr_HR.UTF-8" >> >> (string-lessp "=C6" "D") =3D> nil (string-lessp "=D0" "S") =3D> nil=20 >> (string-lessp "=A9" "Z") =3D> nil > > `string-lessp' is not design to respect collation order. The=20 > docstring speaks about lexicographoc order. i'm sorry, i don't follow this. Yes, the docstring talks about=20 lexicographic order. But i think it's reasonable for users to=20 expect Emacs' built-in sort functionality (e.g. `sort-lines') to=20 respect their current locale such that lexicographic order and=20 collation order are treated as basically synonymous. Unless=20 there's an important distinction between the two in this context=20 that i'm missing? In this specific case, a user of a package i maintain was=20 surprised when `org-sort' didn't sort their Croatian-language Org=20 entries properly. Under the hood, `org-sort' uses=20 `string-lessp'. Is the bottom line that they'll have to wait until=20 at least 25.1 before Org could add conditional code to use=20 `string-collate-lessp', to at least DTRT for users of >25.0? Alexis.