From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AGATDxUmd2CQ3gAAgWs5BA (envelope-from ) for ; Wed, 14 Apr 2021 19:27:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KO3SCBUmd2DRPQAAbx9fmQ (envelope-from ) for ; Wed, 14 Apr 2021 17:27:49 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9E33AD2C4 for ; Wed, 14 Apr 2021 19:27:48 +0200 (CEST) Received: from localhost ([::1]:51896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWjIp-0000SL-Ea for larch@yhetil.org; Wed, 14 Apr 2021 13:27:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWizy-00064J-Pa for emacs-orgmode@gnu.org; Wed, 14 Apr 2021 13:08:19 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWizp-0001Jf-Ss for emacs-orgmode@gnu.org; Wed, 14 Apr 2021 13:08:18 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 58D052400FE for ; Wed, 14 Apr 2021 19:08:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1618420084; bh=FdYMdx8TDaV7VS2z2qxRILubep1abb5uF/qT8TVnGv8=; h=From:To:Cc:Subject:Date:From; b=WaLMfw4TyaSf3D4tJjTDGAn8m5ISOZ7GqO6JR9A5eWXU+1/RCT8xNc3GOMq3M3FOQ Xeh9k6+LyPZRiVmzRjOpSYTCethY0708RbePrfKKE3Ak65c9IZytqvB4ys5exq5Ph7 a6z4qX3qOofKJ6O24eJF+rJIAzbUMmfbquhJ+8C+X+fug04eVFW/cp2+irHB3vrn5d lUFp7O79y16e+YKGsQPO7MxKlrEmrpABVfzcA0sW3XsTQ2wrSJwm0wRA141YRY6vdu g5ukULpl1KEW+VRlXWWgriv1A++LkzN1fxIYGIbrfO7ZcC8zEbasYtuYSj253tR4Xa YTtth8ii4T3eg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FL8763S5cz6tmM; Wed, 14 Apr 2021 19:08:02 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Maxim Nikulin Subject: Re: [Patch] to correctly sort the items with emphasis marks in a list References: <87a6qg1rjx.fsf@posteo.net> <874kgft7n1.fsf@nicolasgoaziou.fr> <87blanxb1z.fsf@posteo.net> <87v98usaqt.fsf@nicolasgoaziou.fr> <87pmz29xjf.fsf@posteo.net> <877dl6atpj.fsf@posteo.net> Date: Wed, 14 Apr 2021 19:07:58 +0200 In-Reply-To: (Maxim Nikulin's message of "Wed, 14 Apr 2021 22:42:16 +0700") Message-ID: <87y2dkrdzl.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618421268; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=GPWdfgMwdRN585Y9mCdAHtUsTWmlVS41S9GYWxGIA/E=; b=im2sjzjL/WEtg0VBDohdgN88WVyDiKPTQF5RxMyMK/QbwKdfhDODdaE/IqrtZDoEapMEME XOg7wB3UHRALCWnBu2H7J3QYHTjk908tYwR+696J2QaUdTXMXSqnMyaeNcxQES/09wbAiI aCmB9KIro0mLrefuQUnycYoSDuWYLvITjVGgwVOupKuIyAxeAUt8ZDabos2VJVaLzs+PXH NzJoMmNqC4lARxT81b+Ji1NbqstRMeTP+UifpHHGPuBN/R97oFG9IPo+7NPPWzxyiYIaVK XIVqa90Q7FruTNGN8a/hilmIcyDclQ4AbqJhhqz3ZKXb1LbtRQP8Relaukkejw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618421268; a=rsa-sha256; cv=none; b=MpFOoBkYqRisX4SJlPvIZn1Dr0WHtB/z3AnKBByBsIyaFV7+/CY2qjKPASDO4p73Td+Eoq 6Q12UvFdG2C6seGJFjRI1qaUxGlE0bOpUynpWACgf4C6cuA+zbLsEQ2atbh27x37vbZwNU wXmWSoaS+ZC2Hofff+K3Ig17cyO+2gclDrkeIrB0bY8sPPnwn/o4kmN61XvzdW8Ndzwnhy MFkekPoY5pV0rGVf6xFfwOBZrGKeyZSwB1so1Qk5YxHHwDTCVB/cESZv74aS5Xc4LPQyBA QP2nnDEad73+OzPBtTZJTDjdmI+V0oZx+GiBkOYCgo5Qg58IB/Fem33qbQPuJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WaLMfw4T; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WaLMfw4T; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 9E33AD2C4 X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1kIbz+eKnIGl Hi Maxim, Thanks again. In my case, I keep getting the wrong result. In addition to the test I did in a virtual machine with Fedora, I use Arch Linux in my every day computers, with locales correctly (I hope) configured as es_ES.UTF-8 (there was a typo in my previous mail, sorry: 'en_ES.UTF-8'). In my /etc/locale.conf file I have: LANG=3Des_ES.UTF-8 LC_ADDRESS=3Des_ES.UTF-8 LC_IDENTIFICATION=3Des_ES.UTF-8 LC_MEASUREMENT=3Des_ES.UTF-8 LC_MONETARY=3Des_ES.UTF-8 LC_NAME=3Des_ES.UTF-8 LC_NUMERIC=3Des_ES.UTF-8 LC_PAPER=3Des_ES.UTF-8 LC_TELEPHONE=3Des_ES.UTF-8 LC_TIME=3Des_ES.UTF-8 And with locale -a, I get a list of enabled locales: C en_US.utf8 es_ES.utf8 POSIX However, I keep getting the wrong result :-( (Arch, Emacs 27.2). Even with LANG=3Den_EN.UTF-8 \ emacs -nw -Q -L ~/src/org-mode/lisp/ -L ~/src/org-mode/contrib/lisp/ \ list.org Maybe the problem is on Arch's side (?), although it was also reproducible in the test I did with Fedora in virtual machine and Emacs 27.=20 Best regards, Juan Manuel=20 Maxim Nikulin writes: > On 14/04/2021 02:08, Juan Manuel Mac=C3=ADas wrote: >> The situation is that with locales configured for Spanish from Spain >> (en_ES.UTF-8) the list is not ordered correctly, unless those three >> spaces from org-sort-remove-invisible are removed. But I couldn't say >> why or if that would be appropriate as a patch... > > Did not you get a warning like the following one? > > (process:220): Gtk-WARNING **: 15:17:45.066: Locale not supported by C > library. > Using the fallback 'C' locale. > >> Regarding the collation rule of forms with emphasis, at least in Spanish >> these should come after the non-emphasized forms. I don't know if this >> is a general rule also for other languages (at least it seems more >> natural that the forms without emphasis are placed before). > > LANG=3Des_ES.UTF-8 \ > emacs -Q -L ~/src/org-mode/lisp/ -L ~/src/org-mode/contrib/lisp/ \ > list.org > > - a > - /a/ > - v > - /v/ > > So it works accordingly to your expectation. Emacs 25.2.2, > Ubuntu-18.04 container. > > I have generated es_ES.UTF-8 locale using > > dpkg-reconfigure locales > > Depending on linux distribution you run, the locale may be ready to > use or not. I tend to think that in minimal environment of virtual > machine it was missed. > > I had an idea to add a test for sorting of items including emphasized > ones but test-org-list/sort forces C locale. Maybe it was done to > avoid failures due to missed locale. > >