From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ziFHILWqeWMkTQEAbAwnHQ (envelope-from ) for ; Sun, 20 Nov 2022 05:19:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mISHH7WqeWNiZgEA9RJhRA (envelope-from ) for ; Sun, 20 Nov 2022 05:19:01 +0100 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 121333CA8B for ; Sun, 20 Nov 2022 05:19:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owbmZ-000402-87; Sat, 19 Nov 2022 23:18:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owbmY-0003zt-1q for emacs-orgmode@gnu.org; Sat, 19 Nov 2022 23:18:14 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owbmU-0002Wz-WC for emacs-orgmode@gnu.org; Sat, 19 Nov 2022 23:18:13 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 80579240026 for ; Sun, 20 Nov 2022 05:18:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668917888; bh=6GUvyI984U+3jR4MSpWUxv+A8DI3Gm+jEUXEriG1E7o=; h=From:To:Cc:Subject:Date:From; b=QVuhnqiY4Kh6buY8juFl2Wquc4xvazCLxst7djBTgpcEBlRwr74kJpNM6aVeGaMFT 8vbTbHMsvuZIakFrvK7yENX+4Dbi8q/bIE2neqDOsFTxnbbZJIzjl5oIUV7hOQ1iqU 1HRwPVUUudKOc9R7sty0jiFR9CcGk/I7ng/4A5AeQ8zTp6cP91U6Nq1QWS4bhoO8Aw UshDwEkMH40Xe9+qXFWKj1BvtBICHLKntnIW/ovRIsPlvWBNx/ZP8D3WH6FXInP4oR hE75WuQgtBrc5U8ycHB4Ix8nVHeHD1Jd0KKnMj7gpwl3HETnmfFZDx8pTYTNWV/7Wm tDsdrrPJMfLVg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NFHLh6F8hz6tqF; Sun, 20 Nov 2022 05:18:04 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: test-org-table/sort-lines: Failing test on macOS In-Reply-To: <87wn7wdfis.fsf@localhost> References: <87ilkulwdy.fsf@localhost> <87y1tpejfm.fsf@localhost> <87wn7wdfis.fsf@localhost> Date: Sun, 20 Nov 2022 04:18:47 +0000 Message-ID: <87pmdil0m0.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668917941; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RWCpJ7yVQ3JS92ynSMpWAXIwgN2c4xKN4IqGsE+HXwI=; b=jr7XfNhxoP2hwlGTFuA0Gm0vvZ+3zpoa1bD/ehbKHVyFrWYXh36Bl9Kct4I899vJ+BwXbr /WkOgvFFImfZrn4e/9ko0iLM/x/+Q6Y0JNgt2t63uaztwChxkfdJKak+pxTv7wfZHNvgJO e+o86NUqjTQwV3vCRaWSRuMr4m3VZ4BTpPZrkSWr4I6acjduRDd7NV2tZdfkpSiBZFgAnT oM622rLEjDR+HA5IBFABUk7IpKRbq4ab04wKi+djckBGR7cTL3RkG6HhDDetz309+cOk/4 s7Zg+Z1T28+oISxqQ88WjwZeQ1b9d+bz1SrDdmLePcC/edXwUc7mTckCQqJEBw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668917941; a=rsa-sha256; cv=none; b=awt7ComlDqFCU0hRdq0J18PUv5nNWnS58YA3BrAbuoi5TDh+3TdUyGJnQKDx2OssbDS5lS dZsDExSrtIZr4NaxrmfQ2etdTKH6QchwWlxoBWfNcybHoPopZCf/mo0V30HGwkX7Wa5NKf O+pEXcpsf7CJk9cSK/upEJWhRwIHsp5hmD+rfUiVtHFeL41rEXQIPaGQFhwTCCSQ4XjW3u /mkJ8g5D0kHpDWrCCuXbVYwF2UzcRfrgBj8tLfaei03tKYLLCy2cv7+vVpOlWv0dE8vnwW UXTif0yNA6a+MB1bZDk2fTM1f//FMF8NdLhCUiMRuHomkIjCAKreN17hf0juSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QVuhnqiY; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QVuhnqiY; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 121333CA8B X-Spam-Score: -3.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: y+wfkB+94g+G Ihor Radchenko writes: > Max Nikulin writes: > >> > (string-collate-lessp "a" "B" "C" t) ; => nil >> Actually you wrote >>> [FYI: If I replace nil with t, the procedure returns nil too.] >> From my point of view it is a reason to file an Emacs bug because I get >> >> (string-collate-lessp "a" "B" "C" t) ; => t > > I submitted the bug report to Emacs. > See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59275 According to the discussion on debbugs, it looks like we can use `compare-strings' instead. It will be independent of the system locale and always follow Unicode rules. However, I am not sure if ignoring locale is something we really want. WDYT? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at