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#58168: string-lessp glitches and inconsistencies Date: Tue, 04 Oct 2022 21:07:19 +0300 Message-ID: <837d1fv4x4.fsf@gnu.org> References: <7824372D-8002-4639-8AEE-E80A6D5FEFC6@gmail.com> <83czbef6le.fsf@gnu.org> <6CB805F6-89EE-4D7C-A398-F29698733A42@gmail.com> <83h70oce4k.fsf@gnu.org> <83tu4mais1.fsf@gnu.org> <83wn9gw2sp.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33336"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58168@debbugs.gnu.org, mattias.engdegard@gmail.com To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 20:08:08 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 1ofmKu-0008VJ-QB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 20:08:08 +0200 Original-Received: from localhost ([::1]:60694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofmKt-0006RV-QC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 14:08:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofmKo-0006RE-5f for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 14:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofmKn-0003Cv-UM for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 14:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofmKn-0005gF-P7 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 14:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 18:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58168 X-GNU-PR-Package: emacs Original-Received: via spool by 58168-submit@debbugs.gnu.org id=B58168.166490685321801 (code B ref 58168); Tue, 04 Oct 2022 18:08:01 +0000 Original-Received: (at 58168) by debbugs.gnu.org; 4 Oct 2022 18:07:33 +0000 Original-Received: from localhost ([127.0.0.1]:55155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofmKL-0005fY-7k for submit@debbugs.gnu.org; Tue, 04 Oct 2022 14:07:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofmKG-0005fG-9P for 58168@debbugs.gnu.org; Tue, 04 Oct 2022 14:07:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofmKB-00038D-47; Tue, 04 Oct 2022 14:07:23 -0400 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=YaC8PmmSbyDqK+46oE4BzQsbpzdo8ZWnN2gyff4tiOI=; b=VHwWmOZZZ/Cp +077VVfPbE67oB5+1TpM4OKTrtpGKHFdBlhyh+VFd/xwuxibQLwRaEfA14PvReyb7wR8OlOawg4wd vxTuQEElJWnrhl/XSYB2TIXPlWHxOPvzXaVO34ozXMAddpVk3yzIKbLAixaWH6J3EJvPtH+diVSO/ 2IOC7V/hCyJxnR7CAFz4Hcqh7psyAJOovfi4laNLRKabIuZt4t/QrS0b6mA9gDwpjkvx8dFNHduOR fZqx3tAqf+mTnF4N5oNsKi5VKILY4NBWk8s4Zfk83NcP/mNg/iv4HxetmfZNH7cnmo4k1Op1IzNpY WjlKAt3PXpFzqFDp6z+F8w==; Original-Received: from [87.69.77.57] (port=2612 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 1ofmKA-0000I7-7s; Tue, 04 Oct 2022 14:07:22 -0400 In-Reply-To: (message from Richard Stallman on Tue, 04 Oct 2022 13:40:18 -0400) 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" Xref: news.gmane.io gmane.emacs.bugs:244463 Archived-At: > From: Richard Stallman > Cc: mattias.engdegard@gmail.com, 58168@debbugs.gnu.org > Date: Tue, 04 Oct 2022 13:40:18 -0400 > > > If the fact that string= says strings are not equal, but string-lessp > > says they are equal, is what bothers you > > That result seems paradoxical to me. Not if you accept that comparing unibyte non-ASCII text with multibyte text yields inherently unspecified results. > Perhaps documenting the difference between these two relationships > could make the current behavior comprehensible rather than anomalous. Yes, that's one of the alternatives that I think should be on the table.