From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 oPL5JwU4P2PEFwEAbAwnHQ (envelope-from ) for ; Thu, 06 Oct 2022 22:18:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gGnuJwU4P2MidQAAauVa8A (envelope-from ) for ; Thu, 06 Oct 2022 22:18:13 +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 5A89A15F87 for ; Thu, 6 Oct 2022 22:18:13 +0200 (CEST) Received: from localhost ([::1]:54200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogXJp-00039g-Qd for larch@yhetil.org; Thu, 06 Oct 2022 16:18:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogXGt-00038J-GK for emacs-orgmode@gnu.org; Thu, 06 Oct 2022 16:15:09 -0400 Received: from mr85p00im-ztdg06011901.me.com ([17.58.23.198]:46136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogXGr-0002ze-Ui for emacs-orgmode@gnu.org; Thu, 06 Oct 2022 16:15:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1665087304; bh=4NqDUrdcNGciXTgwwWRGmSJXP8GXt6pKnXsSfQx29Xs=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=EHLlgEGe/stGlK7O81IUAC/lxLZwiyfrVI1Tu56gj/77vyrtCGj3QuzMgMjuURMwS TQ/49Svn9Bp7ecipq4mgkUgNAS2t3KRXugl5h5o9Id1jwyoPs6qAu7wfkDqfeyrwd9 aJCx2hFNg4lFUm6hz6C0qva2jY3CaJXZrgTUKz3f7NJkREk9geX5VrILw3UBuV+csO T47WI4rsoWpxY5r+8wFg/c7N7+MZwWDCunSnl98dZBhimKm4rDV0h/H5yxi7YSGMG0 LsydiBNfM7P+5M6OjCkBMozwwDwWDgjy2zNxqSsEACURlXEDRPnkaRfF4d53N0gdy2 MZWZjTMq+zmMA== Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06011901.me.com (Postfix) with ESMTPSA id C6FB6900AA5 for ; Thu, 6 Oct 2022 20:15:03 +0000 (UTC) From: =?utf-8?Q?Rudolf_Adamkovi=C4=8D?= To: emacs-orgmode@gnu.org Subject: test-org-table/sort-lines: Failing test on macOS Date: Thu, 06 Oct 2022 22:15:00 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: OE4xCKR0X_A9y9q292amJH3I8jsa-q1u X-Proofpoint-ORIG-GUID: OE4xCKR0X_A9y9q292amJH3I8jsa-q1u 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 phishscore=0 malwarescore=0 bulkscore=0 mlxlogscore=683 suspectscore=0 spamscore=0 adultscore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210060119 Received-SPF: pass client-ip=17.58.23.198; envelope-from=salutis@me.com; helo=mr85p00im-ztdg06011901.me.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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.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=1665087493; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4NqDUrdcNGciXTgwwWRGmSJXP8GXt6pKnXsSfQx29Xs=; b=jUG6NYNjl8WTHxG/t96cVx02P31jWsGp+l4NQI62hKv0JxnhiGrkic2VW5mMYeGwJ9N2xR rr5xped5CuazMT2MpzxXj5mAu1rFWBohOJTC8gpOVvbXA3qY4dh+jhAy+IXpE9+4zTEKKX IzEL8IsS2+uauQC4lpJbR5EKxQsIQkqv1y2g3BpgkH2tI2XbU8MdMoiU4hVOrm5cRPBbNp qS62il/YklEh1zx8vo5yamWHKW+qse5Ne9vH5dcdA+UMhlgNxnRSZBGHzLbRbX1KWPDMa7 dQI8j1VrFLpgRe6Si3VLgbpsT2m7P41eV3BPUBgjLnwgSaeIstxtCEYUlqG7GA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665087493; a=rsa-sha256; cv=none; b=LMR0JKfB3M85KkaKy9KNdP6viMI8YCGkkzAykD4XYcT5wkTQ5BEMPaY5SJy7YMGwHRVuG9 czrfz4sEt25UP2zCXcB9dr+m3SzetFqnnBxxTCd9PWGwLu2vT3lCxR1lCuFgxlHDAf5l84 gPEbaQ38RQEJ4noMmFddI3b0wN9ooIGH7QvxjzGoJAFYhmO4U7bKDMb3xY/aKRTodLT1Yt CnjuzNV8rJ3jdzIBzvMiR1YOK6A9nNaSjnStFWAJ9QgUV4XEpsjwDqvO3CLoG9U+lz6/iy qaSYxwJSErgDDaQG/6mRP+i8rOU2zsE5Gqe1EwHsc3gsO2/Fw6Puia3C4fQcHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=EHLlgEGe; 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: -4.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=EHLlgEGe; 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: 5A89A15F87 X-Spam-Score: -4.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: 71putPAfCkPN Howdy, howdy! I see the test failure below on macOS. Test test-org-table/sort-lines condition: (ert-test-failed ((should (equal "| a | x |\n| B | 4 |\n| c | 3 |\n" (org-test-with-temp-text "| a | x |\n| c | 3 |\n| B | 4 = |\n" ... ...))) :form (equal "| a | x |\n| B | 4 |\n| c | 3 |\n" #("| B | 4 |\n| a | x |\n| c | 3 |\n" 0 9 (face org-table) 10 19 (face org-table) 20 29 (face org-table))) :value nil :explanation (array-elt 2 (different-atoms (97 "#x61" "?a") (66 "#x42" "?B"))))) FAILED 796/952 test-org-table/sort-lines (0.003410 sec) at ../lisp/test-org-table.el:1880 The isolated part of the test file that fails: (let ((original-string-collate-lessp (symbol-function 'string-collate-lessp= ))) (cl-letf (((symbol-function 'string-collate-lessp) (lambda (s1 s2 &optional _locale ignore-case) (funcall original-string-collate-lessp s1 s2 "C" nil)))) (should (equal "| a | x |\n| B | 4 |\n| c | 3 |\n" (org-test-with-temp-text "| a | x |\n| c | 3 |\n| B | 4 = |\n" (org-table-sort-lines nil ?a) (buffer-string)))))) If I understand, "a" should be less than "B" when under "C" locale when ignoring case (nil) , right? Yet, I get the following: (string-collate-lessp "a" "B" "C" nil) ; =3D> nil [FYI: If I replace nil with t, the procedure returns nil too.] Tested on Emacs 29 (adaa2fc90e) and Org 9.5.5 (580f28614). Rudy --=20 "It is no paradox to say that in our most theoretical moods we may be nearest to our most practical applications." -- Alfred North Whitehead, 1861-1947 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia