From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18051: [Emacs-diffs] trunk r117726: Add string collation. Date: Wed, 27 Aug 2014 18:40:20 +0300 Message-ID: <83k35uj5zv.fsf@gnu.org> References: <53FAB5F9.9050706@yandex.ru> <53FACE18.2060801@cs.ucla.edu> <53FAD584.7070708@yandex.ru> <87r405t6kg.fsf@gmx.de> <83mwasligr.fsf@gnu.org> <87wq9u18fz.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1409154084 22811 80.91.229.3 (27 Aug 2014 15:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Aug 2014 15:41:24 +0000 (UTC) Cc: dmantipov@yandex.ru, 18051@debbugs.gnu.org, eggert@cs.ucla.edu To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 27 17:41:14 2014 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 1XMfLV-0003US-VN for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Aug 2014 17:41:14 +0200 Original-Received: from localhost ([::1]:60207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMfLV-0001sj-I7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Aug 2014 11:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMfLO-0001sc-Nf for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2014 11:41:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMfLK-000703-6A for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2014 11:41:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMfLK-0006zz-3P for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2014 11:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XMfLJ-0004FH-PV for bug-gnu-emacs@gnu.org; Wed, 27 Aug 2014 11:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Aug 2014 15:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18051-submit@debbugs.gnu.org id=B18051.140915401816258 (code B ref 18051); Wed, 27 Aug 2014 15:41:01 +0000 Original-Received: (at 18051) by debbugs.gnu.org; 27 Aug 2014 15:40:18 +0000 Original-Received: from localhost ([127.0.0.1]:53743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XMfKb-0004E9-CY for submit@debbugs.gnu.org; Wed, 27 Aug 2014 11:40:18 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:54528) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XMfKY-0004Du-4t for 18051@debbugs.gnu.org; Wed, 27 Aug 2014 11:40:15 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NAZ00G00235AL00@mtaout26.012.net.il> for 18051@debbugs.gnu.org; Wed, 27 Aug 2014 18:38:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NAZ006B223Y0IA0@mtaout26.012.net.il>; Wed, 27 Aug 2014 18:38:23 +0300 (IDT) In-reply-to: <87wq9u18fz.fsf@gmx.de> X-012-Sender: halo1@inter.net.il 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:92719 Archived-At: > From: Michael Albinus > Cc: dmantipov@yandex.ru, eggert@cs.ucla.edu, 18051@debbugs.gnu.org > Date: Wed, 27 Aug 2014 13:24:48 +0200 > > > 2. Should we signal an error if the input strings are not pure-ASCII > > or multibyte? Unibyte strings will at best cause incorrect > > results. > > Maybe we shall convert the strings to multibyte, via string_to_multibyte()? That will not help. I say code that invokes these functions with unibyte non-ASCII strings has a bug that should be flagged. > > 5. The locale names on Windows are different from Posix: Windows uses > > 3-letter abbreviations of the country and the language, > > e.g. "fra_FRA" instead of the Posix "fr_FR". Do we want the locale > > string values used for let-binding the above-mentioned variable to > > be portable across systems? Then we'd need some conversion > > database on MS-Windows. > > Here I'm a bit undecided. We could let it to the users to find the > proper locale name, but this is inconvenient. OTOH it would be much work > to install a mapping system, and we would need to maintain it. What if > there would be a new "en_SC" (Scotland) locale? We would need to > maintain such changes in Emacs forever ... I think these interfaces will almost always be used with the current locale. So with that in mind, I think we can document this issue, and then safely leave this problem to the code that needs to use non-default locales. > > 6. I think we will want case-insensitive version of this function. > > That's also on my todo list. But I'm a little bit undecided whether we > shall add it to string-collate-* functions, or whether there shall be > further functions. > > Maybe we could use sort-fold-case for this as indication? Or is this too > specific? See my suggestion in the other message. Thanks.