From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gDdnMUWcRGPAQwEAbAwnHQ (envelope-from ) for ; Tue, 11 Oct 2022 00:27:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aBJZMUWcRGPp1QAA9RJhRA (envelope-from ) for ; Tue, 11 Oct 2022 00:27:17 +0200 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 8C7CC1001D for ; Tue, 11 Oct 2022 00:27:17 +0200 (CEST) Received: from localhost ([::1]:60748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oi1Ey-0003na-Ni for larch@yhetil.org; Mon, 10 Oct 2022 18:27:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi1E5-0003nQ-55 for emacs-orgmode@gnu.org; Mon, 10 Oct 2022 18:26:21 -0400 Received: from mr85p00im-hyfv06021401.me.com ([17.58.23.190]:58304) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi1Dm-0004Nc-MH for emacs-orgmode@gnu.org; Mon, 10 Oct 2022 18:26:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1665440760; bh=sl+323jULskrzq79KUjoCdFOeFDKZQ2av4Exu7cIavk=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=CDq0O0LlxxHJOyD7BITgUJK1uqJey1Yo+AaTXjx+uhcnVaTllq1rktENRmG48VobO xm92LNHCfvG1HUvsUXZpn+N157SRLM8/kAN9+VO3TyGF3NK3gmr4Uc/kAguhXI9BWs miHBKKhsSL/CrZXw8eTGAkmnHZtL3BOP8xGJwOJ5d1ARSyOdDVY26he3N7P2X+cYz2 t63hVxgWMHf3ZqdSOXpr05T5+qKALdf0pbDbNyjt4k9InQXgIe4TkQKGXgGwPEka/x wlS6y0DVr2y8pwAnL64OAkYe+4ayrJQCZtzp+qFhd5ZDI79ZkE/xJQ6hcEgj8Z6OjL 1eo8Co2VGIIjw== Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-hyfv06021401.me.com (Postfix) with ESMTPSA id 475D730386C4; Mon, 10 Oct 2022 22:25:59 +0000 (UTC) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: test-org-table/sort-lines: Failing test on macOS In-Reply-To: References: <87ilkulwdy.fsf@localhost> <87y1tpejfm.fsf@localhost> Date: Tue, 11 Oct 2022 00:25:56 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: 3KPO-kzhv1OmmyWUWiw2WCcxgjz_odPz X-Proofpoint-ORIG-GUID: 3KPO-kzhv1OmmyWUWiw2WCcxgjz_odPz X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.572,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-01-14=5F01:2022-01-14=5F01,2020-02-14=5F11,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 clxscore=1015 phishscore=0 mlxscore=0 spamscore=0 malwarescore=0 bulkscore=0 mlxlogscore=891 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210100133 Received-SPF: pass client-ip=17.58.23.190; envelope-from=salutis@me.com; helo=mr85p00im-hyfv06021401.me.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, 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.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" 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=1665440837; 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:dkim-signature; bh=sl+323jULskrzq79KUjoCdFOeFDKZQ2av4Exu7cIavk=; b=QuWS9azGHvE2qOxZoT1z8ErxQvBcLFelGDNgFqN/8XT15raT8NmwEdKnITHVWR/coHTEbv WaqyOCagYbwFtp73lO0JrEK4EQtnaUhmzArsuLCX2gjBwRnfAMxCl6jDVYU/DoUMngILeH JuOhMD1BcC91mgmhxZ2CuHRoQg+mNwobWs2xRwVcrPFXPfLHd6UmaHq9JpiIsnPM+a6ekG 8up4hRW6b3WYG/ou2Z2NxyFkhle58XthHV60Prf5ewRh+efdwVUxfCUD1RBbVWes991N9L kzyfJo57tljn4idPBDJ7s1aqV1+WujcIKtB+KN8ARYoZZ10MuTi2H+jnpKdBJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665440837; a=rsa-sha256; cv=none; b=n4ad9NYUehiIN1uquIpbjpmZEoe9mHWjGusdjnD7AUzy3JgIwm9ozmrgEMp0af894DKQkS 8ZqRy2MEHcpZLIC60JxIs8GUOnwlCyf4CkGB1w8Q3h/zY0nqIUqEOB81QnLjE7+HSXar+9 QaxAHZBSrmtuDAnMN3FFJ13sPySwHuvFlCK/XPdxcbJuMjJa+bKBX/YyZC6Uc698PbaL5K MInl1W/7MeMT2FKjExm0/tRbjRt3b7q6Ck3L+GEEGyAXhzMVrDxsECCiefFT00uBahUZyv U273deLat5R0t59qXVZ4KvCf1WfnGDerR2LRGEWr1UVT7RzMtjNeN/O4PalcqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=CDq0O0Ll; dmarc=pass (policy=quarantine) header.from=me.com; 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: -9.39 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=CDq0O0Ll; dmarc=pass (policy=quarantine) header.from=me.com; 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: 8C7CC1001D X-Spam-Score: -9.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: SUeI+YFZWoca Max Nikulin writes: > This one is not consistent with what I see on Linux with glibc. Yeah, I noticed. :) > Perhaps you do not have en_US locale generated > > locale -a | grep en_US > en_US.utf8 $ locale -a | grep en_US en_US.US-ASCII en_US.UTF-8 en_US en_US.ISO8859-15 en_US.ISO8859-1 > Sanity test passed for sort. You may try the same set of pairs with=20 > `string-collate-lessp'. (string-collate-lessp "a" "b" "C" t) ; t (string-collate-lessp "b" "a" "C" t) ; nil (string-collate-lessp "A" "B" "C" t) ; t (string-collate-lessp "B" "A" "C" t) ; nil (string-collate-lessp "a" "b" "C" t) ; t (string-collate-lessp "b" "a" "C" t) ; nil (string-collate-lessp "A" "B" "C" t) ; t (string-collate-lessp "B" "A" "C" t) ; nil (string-collate-lessp "a" "b" "C" nil) ; t (string-collate-lessp "b" "a" "C" nil) ; nil (string-collate-lessp "A" "B" "C" nil) ; t (string-collate-lessp "B" "A" "C" nil) ; nil (string-collate-lessp "a" "b" "C" nil) ; t (string-collate-lessp "b" "a" "C" nil) ; nil (string-collate-lessp "A" "B" "C" nil) ; t (string-collate-lessp "B" "A" "C" nil) ; nil > I am curious if "POSIX" locale works similar to "C" and "C.UTF-8" in=20 > your case (string-collate-lessp "a" "B" "POSIX" nil). (string-collate-lessp "a" "B" "POSIX" nil) ; nil Rudy --=20 "'Contrariwise,' continued Tweedledee, 'if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic.'" -- Lewis Carroll, Through the Looking Glass, 1871/1872 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia