From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MEHYFWkjfGdWFAEAqHPOHw:P1 (envelope-from ) for ; Mon, 06 Jan 2025 18:39:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MEHYFWkjfGdWFAEAqHPOHw (envelope-from ) for ; Mon, 06 Jan 2025 19:39:37 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=getejFTU; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736188777; 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=Ch5a9tkyhsWU+/xkj6+M+VnjmFXhHYufF8cNz2maIao=; b=lmg247bkvVwUgHsx7rzfVAi3pI+3YENH5Qp003IvusGxuQcWIxy4V4Z9FlZr6JWDD+JfWS JrRVU/tpbdTtJElYR0fN3iT94fy6z3xnKz5/alpACLlsVKaHID0tWy/ZUpTx13qNx6GVfv sMKob/jYTawjYo/677CAQVFtbRVlPDPDRp6sp5mb4ctlEVS9CPXLotiArVYj+fCxwOxklU w2YKjr+VWT+WjnN4Fi+WuCEphy62CkmvbKfAIkGSu8JJc5VJU+9BItlb3JZf38/i19qJck KsWRqHSJY20PqQOu9lECJA0/9WCf+ga6jojEWlFQagCneAgKanDNB5rrseKc2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=getejFTU; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736188777; a=rsa-sha256; cv=none; b=Ak710vdimPugFBVyE/mBHUl0KqMMtmvA6VImKfNVb/b+jXLDwwxhvULlDeb/SgNkcwwazs 8J6EP5mdj+Zcxg4sfXhjZzNOaUT+LQBTzNmxPbnphKXRkC9ZjoHZMj/L5a6Q74T2LDFQDj L3CbBZr+8Yx19/NqqL/ve9gJv4DOoDaGIGuZcbWHcSJkdDWkxrAzdGxSEH16Iq9o4sLaDM LJacu6OcUhkoe8VRdY7SRYpmt6CeVZzcK4U1xgYK2ZLNwlDeON2vnWCmEMPzCnWmVwg+7w ajOtVbBfpZMx5uI1sxoWmESRe8XzVbJ3IQXvd2la9VyT3su08mKOZ/BLQy7xhg== 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 38CB7A4BBC for ; Mon, 06 Jan 2025 19:39:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUrzi-0005gi-4b; Mon, 06 Jan 2025 13:38:30 -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 1tUrzf-0005gX-B4 for emacs-orgmode@gnu.org; Mon, 06 Jan 2025 13:38:27 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUrzc-0003JZ-Qj for emacs-orgmode@gnu.org; Mon, 06 Jan 2025 13:38:26 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B0B99240101 for ; Mon, 6 Jan 2025 19:38:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1736188701; bh=gBVfIdC5xiIa770/L8X6X3iyENGiwAWUivYYC+bMDhg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=getejFTU9PkWlsRPn9zkghUFe5DoJyBGcAcy1WszueXAeuTXPo0BRjKsx8FDDz05p It4Lq6M8kLdRvMVT2N8iP8NN3TU9M14r4y5ob4JUJ9/6Hcbv0yawro7LQfXeTU/qMQ qPG2ZNmZUuWfS1ughgYid8LJAldxBTUYx94ndqC4tzE4RaT9BPyAqhXpXPzMDLE9Th fmvyBJbQsaviC+cV+0kNGw2AyYbJo/gTR/8SiIWZxEd6wZgbVh24xTqehH0wA6Lgfc IOqGJ628gg6w3uI/5AJtR2Uul/DFYPRglTMymjJUwbm8qg6dg/5klVV58QdPGy4aNy WMm22p5LbT4ew== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YRjcF1SGgz6twB; Mon, 6 Jan 2025 19:38:21 +0100 (CET) From: Ihor Radchenko To: Michael Brand Cc: 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> <87wn7wdfis.fsf@localhost> <87pmdil0m0.fsf@localhost> <87k03pj8vw.fsf@localhost> <87leo3dc42.fsf@localhost> Date: Mon, 06 Jan 2025 18:40:39 +0000 Message-ID: <87a5c3hjko.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.77 X-Spam-Score: -8.77 X-Migadu-Queue-Id: 38CB7A4BBC X-Migadu-Scanner: mx10.migadu.com X-TUID: ujGpUZ8x0Kpb Michael Brand writes: > For this specific subject I can not see a follow up in this thread, or > an implementation on the branches bugfix or main. And the complaint of > the OP about the failing test is still valid on bugfix (on main ~make > test~ aborted before with "void-variable (file)" on "(delete-file > file)" quite early when loading testing/lisp/test-ob-tangle.el). There was a transient problem on main. Now, make test should run. This thread concluded with https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=413192698 (on main) > As far as I understand and agree, some Org functionality wants to > stick with ~string-collate-lessp~. Is it welcome if I finish working > on my local patch that plans to use > > #+begin_src emacs-lisp > (defun org-test-string-collate-lessp-ignore-case-supported-p > (&optional locale) > "Whether `string-collate-lessp' supports ignore case for LOCALE. > According to the docstring of `string-collate-lessp' it does not > implement ignore case for some locale on some operating > systems (actually depending on libc of Emacs). E. g. on macOS > `string-collate-lessp' does not ignore case for the locale C. > > See also https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59275 and > https://list.orgmode.org/orgmode/m2ilkwso8r.fsf@me.com" > (let ((ignore-case t)) > (string-collate-lessp "a" "B" locale ignore-case))) > #+end_src > > not to skip the test as suggested in the quote at the beginning of > this message but to bifurcate the expected result of the ERT to fix > the test for e. g. macOS on bugfix? AFAIU, this is more complex. We cannot have a simple test for all possible locales. Or did you find one? My conclusion from bug#59275 discussion is that simple tries like (string-collate-lessp "a" "B" locale t) will not work. Especially for non-US locales. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at