From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#59275: Unexpected return value of `string-collate-lessp' on Mac Date: Tue, 15 Nov 2022 15:05:48 +0000 Message-ID: <87h6z0cl6b.fsf@localhost> References: <87zgcsdfma.fsf@localhost> <83iljgib4w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6814"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59275@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 15 16:06:35 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ouxWF-0001Zh-Iv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Nov 2022 16:06:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouxVk-0001GJ-Vm; Tue, 15 Nov 2022 10:06:05 -0500 Original-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 1ouxVj-0001FS-6Z for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 10:06:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouxVi-00038F-SL for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 10:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouxVi-0005OZ-Lr for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 10:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Nov 2022 15:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59275 X-GNU-PR-Package: emacs Original-Received: via spool by 59275-submit@debbugs.gnu.org id=B59275.166852471620657 (code B ref 59275); Tue, 15 Nov 2022 15:06:02 +0000 Original-Received: (at 59275) by debbugs.gnu.org; 15 Nov 2022 15:05:16 +0000 Original-Received: from localhost ([127.0.0.1]:55018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouxUx-0005N6-OT for submit@debbugs.gnu.org; Tue, 15 Nov 2022 10:05:16 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:54097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouxUv-0005Mr-Hn for 59275@debbugs.gnu.org; Tue, 15 Nov 2022 10:05:14 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 84226240027 for <59275@debbugs.gnu.org>; Tue, 15 Nov 2022 16:05:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668524707; bh=+UlVfkeYBadVA2WX6sirx2LBSfP+6GF1KuG/4szdpoI=; h=From:To:Cc:Subject:Date:From; b=fdvadL4Uk2ZAt4vkKXNxahHRbRLglY3OUq8TQ5twXUfUlprjW0SGBBlJTE5oFnpKD HhDmyGaMWtcr+nkoh1HYyrR2OIWhnSHset/qDr/o5dUN+kIZ9MRINUJcfjqz7zoR8E AvU8Pxtd5cF16McTKDbdG46U815PI4cwvZZ2GeAMFoYsB/A6WwE7etdkW95pyFSqlv 2zpdRN867Hr11/5PB36cHPlk94JRmqcdXHt3TXgd+w8cFrj2k3zSzM6sKuRFbbuyPp ktuZ8WodEDR9uqm78Q5y8RyWYHnG6ITzJGC/CKrcFZwtfL+8ojRGXtcu/+B8NPW667 w4Vmt40wrKxyQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NBTxZ2Q8Sz6tmb; Tue, 15 Nov 2022 16:05:05 +0100 (CET) In-Reply-To: <83iljgib4w.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247953 Archived-At: Eli Zaretskii writes: >> On Emacs 29 (adaa2fc90e) MacOS build: >> >> (string-collate-lessp "a" "B" "C" t) ; => nil >> >> On Linux: >> >> (string-collate-lessp "a" "B" "C" t) ; => t >> >> The return value on MacOS is unexpected. > > string-collate-lessp is inherently platform- (and locale-) dependent. > Don't use it if you want consistent results across platforms and > locales. Is there a better alternative? Also, do I miss something, or is this pitfall not documented in the docstring of `string-collate-lessp'? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at