From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59275: Unexpected return value of `string-collate-lessp' on Mac Date: Tue, 15 Nov 2022 15:46:07 +0200 Message-ID: <83iljgib4w.fsf@gnu.org> References: <87zgcsdfma.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2672"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59275@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 15 14:47: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 1ouwHn-0000T5-HC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Nov 2022 14:47:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouwHY-000237-Ec; Tue, 15 Nov 2022 08:47:20 -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 1ouwHG-0001vQ-Rh for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:47:07 -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 1ouwHG-0006jo-Ij for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouwHG-0002tx-Ez for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Nov 2022 13:47: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.166851996211049 (code B ref 59275); Tue, 15 Nov 2022 13:47:02 +0000 Original-Received: (at 59275) by debbugs.gnu.org; 15 Nov 2022 13:46:02 +0000 Original-Received: from localhost ([127.0.0.1]:53479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouwGI-0002rz-3f for submit@debbugs.gnu.org; Tue, 15 Nov 2022 08:46:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouwGG-0002rE-34 for 59275@debbugs.gnu.org; Tue, 15 Nov 2022 08:46:00 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouwGA-0006bx-PN; Tue, 15 Nov 2022 08:45:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ZBQFYDNsiacO3dy/DOkYHfCuq6OLLHqUY8xur7zHAZ8=; b=iFYWYtiQfp59 uQELnC27AopwMV16MuZU9Cfb80qicYsOXPecDmjbzpQS6gYUzq4pSt4rwfx7O2ETiNqailQ+UKsmk A0HxjZbI/tN8YBpIbogTcEj6eQEMlWhc/aA+L5j+2aq2CpLYaEyvoB+wihJnF+7fcE5hV/ed/hKJZ vYMb1ePGjDOZ2P+LecTYUag+1i0w29X661/zEtRkEQ9yjNAV4PxjoMvT+PMxPmifpA3iONk9yA4Ng 6zJX17KCexZTU2/3htGIrEyh658bjPPWB2nnLjR7gMYRM2kgQAayKSSVErv/Ot9VfWPjWJDls69D5 mu1cyrJxascpSXARdhLSjQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouwG9-0002aA-4C; Tue, 15 Nov 2022 08:45:54 -0500 In-Reply-To: <87zgcsdfma.fsf@localhost> (message from Ihor Radchenko on Tue, 15 Nov 2022 04:08:13 +0000) 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:247941 Archived-At: > From: Ihor Radchenko > Date: Tue, 15 Nov 2022 04:08:13 +0000 > > I am forwarding an issue originally reported on Org mailing list. > https://orgmode.org/list/m2ilkwso8r.fsf@me.com > > 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.