From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gEQyNqy/fWCWLwEAgWs5BA (envelope-from ) for ; Mon, 19 Apr 2021 19:36:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UBbWMay/fWCQSAAAB5/wlQ (envelope-from ) for ; Mon, 19 Apr 2021 17:36:44 +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 4566010652 for ; Mon, 19 Apr 2021 19:36:44 +0200 (CEST) Received: from localhost ([::1]:48842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYXpC-0006YF-4v for larch@yhetil.org; Mon, 19 Apr 2021 13:36:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYXor-0006Y7-3I for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 13:36:21 -0400 Received: from ciao.gmane.io ([116.202.254.214]:36768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYXop-0004PF-OT for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 13:36:20 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lYXoo-0002do-I5 for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 19:36:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Maxim Nikulin Subject: Re: [Patch] to correctly sort the items with emphasis marks in a list Date: Tue, 20 Apr 2021 00:36:13 +0700 Message-ID: References: <87a6qg1rjx.fsf@posteo.net> <874kgft7n1.fsf@nicolasgoaziou.fr> <87blanxb1z.fsf@posteo.net> <87lf9fa3ak.fsf@posteo.net> <87sg3n8f33.fsf@posteo.net> <87tuo2d670.fsf@nicolasgoaziou.fr> <87r1j6b6ku.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 In-Reply-To: <87r1j6b6ku.fsf@nicolasgoaziou.fr> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , 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=1618853804; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=GfMm4tizjrTgH6WInD7Rn079n8gOW6XTJOUSdGw/irE=; b=inmpYOoJNWQi3oUsQ1K3qBUOFvNPAXIFcSpcvFa8aXRAK7GDVISiYHan1l7ivxR/16RG1B 3YWYBZohz3iepjbPKoZjHiCfLGLclX/Tq6IdUNdNwVefxwQBcj0IHn71lkRYtd/Kj9bSlS VT4Mhw7UEcCFQXxWXnCQdAJ9LCVeKUh31zQuNABH7zAcoaBt48+DMlIg3m3JJhOHxKMOUQ IxYskYjogFFAkl9qf+CvZyOBWdVL6Ozg2pS89kvfJ3oXVVMq7+EUtqw/WeCxtAoCwBe3cY 98x0wOPRE+IyzMQ3segXg8SJ6oFpsdBEeCQrXOpSS50W9nD3px51ntftVBP17w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618853804; a=rsa-sha256; cv=none; b=f8EZVlrVMwxADweh/U3yfJuQhKOtZFcgjf4Ks4moGq9ehdlK64ZLLSX6uoYj6vuQVd8XLB tHEiJllG0DBQmbisSl205sFgTf+ZIYKJXPWd/UK9GmjdolBtwAAypFc1a821z01QUBSMWj W0fWfUWmR79ROnwZoE9BiEUMylO2XLq0/C/G8sJ1XttN+7P2iYO6AEgHmhzOFcE4YRKPnv fbP3M2h+8aydbdgjjQC7p3/yMZZvtUT1wDC10ofchZ6CY0cWjFTEI1VzMViAhJ6EYWvvHj hS6tFAYRCdMeKX1JniX7/pfLS36DXyxLjxfmBhN/CzCUbtNHl61IOFmVD7X0yA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: -1.84 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 4566010652 X-Spam-Score: -1.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: nMCQkCFK+Vgi On 19/04/2021 23:08, Nicolas Goaziou wrote: >> + ;; Space role in sorting. >> + ;; Test would fail for locales with ignored space, e.g. en_US, it works >> + ;; in C and currently rare locales having significant space (es_ES, pl_PL) >> + (should >> + (equal "- Time stamp\n- Timer\n" >> + (org-test-with-temp-text "- Timer\n- Time stamp\n" >> + (org-sort-list t ?a) >> + (buffer-string)))))) > > Since this test is bound to fail for some developers, I assume it > shouldn't be included. Locale "C" is forced for this group of tests. I have added the test to catch an attempt to change locale since it would affect other cases. I hope, the comment might be useful for those who play with sorting having a regular locale instead of fallback "C".