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#12008: Alphabetic sorting respect user's language and/or locale Date: Mon, 23 Jul 2012 18:34:59 +0300 Message-ID: <83wr1uze1o.fsf@gnu.org> References: <500ABD92.5050104@gmx.at> <83liid14u0.fsf@gnu.org> <83boj724yn.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1343057746 17430 80.91.229.3 (23 Jul 2012 15:35:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2012 15:35:46 +0000 (UTC) Cc: 12008@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 23 17:35:45 2012 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 1StKfd-0001At-Bd for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jul 2012 17:35:41 +0200 Original-Received: from localhost ([::1]:51963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StKfc-0007rM-Ee for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jul 2012 11:35:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StKfU-0007r9-T7 for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 11:35:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StKfQ-0002Od-2P for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 11:35:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StKfP-0002OZ-Uq for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 11:35:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1StKll-0007kb-QQ for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 11:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Jul 2012 15:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12008 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12008-submit@debbugs.gnu.org id=B12008.134305810329770 (code B ref 12008); Mon, 23 Jul 2012 15:42:01 +0000 Original-Received: (at 12008) by debbugs.gnu.org; 23 Jul 2012 15:41:43 +0000 Original-Received: from localhost ([127.0.0.1]:32895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StKlS-0007k5-Tq for submit@debbugs.gnu.org; Mon, 23 Jul 2012 11:41:43 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:57340) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StKlR-0007jy-FM for 12008@debbugs.gnu.org; Mon, 23 Jul 2012 11:41:42 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M7M00M00DANS100@a-mtaout22.012.net.il> for 12008@debbugs.gnu.org; Mon, 23 Jul 2012 18:34:55 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7M00M6NDY6ADB0@a-mtaout22.012.net.il>; Mon, 23 Jul 2012 18:34:55 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:62310 Archived-At: > From: Stefan Monnier > Cc: rudalics@gmx.at, 12008@debbugs.gnu.org > Date: Mon, 23 Jul 2012 04:57:14 -0400 >=20 > >> So better would be to switch the locale to utf-8 and call strcol= l > >> without calling ENCODE_SYSTEM (tho of course, only if the string= s > >> are multibyte). > > How will this be different from string< etc., that we already hav= e? >=20 > I'd expect strcoll in a utf-8 locale to sort e =E9 =E8 =EA and such > close together. Does the encoding really matter for strcoll? That is, won't de_DE.UTF-8 and de_DE.iso8859-1 produce the same collation order for the same characters? If the encoding doesn't matter, then why do you keep mentioning utf-8 locales in this context? The request, as I understood it, was to be able to sort arbitrary strings in the locale-dependent collating order.