From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#58168: string-lessp glitches and inconsistencies Date: Sat, 1 Oct 2022 13:51:02 +0200 Message-ID: References: <7824372D-8002-4639-8AEE-E80A6D5FEFC6@gmail.com> <877d1l55rn.fsf@gnus.org> <469814C2-197A-4BCA-8E2A-245577340C1E@gmail.com> <83edvscdk8.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19444"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58168@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 01 13:52:11 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 1oeb2Q-0004uJ-Up for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 13:52:10 +0200 Original-Received: from localhost ([::1]:54210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeb2P-0007GG-EZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 07:52:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeb2I-0007G7-UN for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 07:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeb2I-0007VB-Mo for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 07:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oeb2I-0000DR-Dj for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 07:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Oct 2022 11:52:02 +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.1664625072772 (code B ref 58168); Sat, 01 Oct 2022 11:52:02 +0000 Original-Received: (at 58168) by debbugs.gnu.org; 1 Oct 2022 11:51:12 +0000 Original-Received: from localhost ([127.0.0.1]:43822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeb1T-0000CO-Tr for submit@debbugs.gnu.org; Sat, 01 Oct 2022 07:51:12 -0400 Original-Received: from mail-lj1-f173.google.com ([209.85.208.173]:43612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeb1S-0000CB-Lq for 58168@debbugs.gnu.org; Sat, 01 Oct 2022 07:51:11 -0400 Original-Received: by mail-lj1-f173.google.com with SMTP id b6so7293658ljr.10 for <58168@debbugs.gnu.org>; Sat, 01 Oct 2022 04:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date; bh=F3GPe8QV/ViC4zUgJ4xE1hTcG0F1xAE06U3x93OL1X0=; b=Px/hGc+VvFYFYiq/cZJBjbLcnjrNVcxKIxzGfPrGHE22VnTuHuJj5irSFTOY/c+1A8 FaHpe2g12RLdJiAzwNJxPxN1wf8cwrd6vJnBGmBOBh996VgOMYJNnot/N6u6P8j4h9AF ktLHYOFCqTDAKlzoOmTLfrizKmUyhxkKuGppy2TrRE72dXe9wAuCCe6F6U4LI+wusdWi eAMUlAfMAxvEBdm7HvnMtEuVlVfa6U3IuQGHNXeHatuUnqpb/YQ/SabJy9NQDg/c8ZRF GfLg8NCDVU15lJrMkaP3M9vOpvr0myjqUzGvhfH2kgr0NDACnlWcCndLbrntgckYKdBc 3dxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date; bh=F3GPe8QV/ViC4zUgJ4xE1hTcG0F1xAE06U3x93OL1X0=; b=hg3QMDN9r9UnSdwCk08T5QItzwSD+gUxcTS7fNZmhzct6tSNZqyTINgAoZx0t3rIFY OBXnFp8vFwPMx1HOmaBX1+P/1lT7Y17/aILXm7XkPV6wV5b6NyOMObpOOElGsbPMhnMg Rvcz/q2ZvEbifAtbRqSzdePdzexIHxVcK4KThpGcDIM5s5mgdd5oTENCC8mrO7/hiowr +cH3ciymRk7TLHTNZVyvyfotkzv7tRu7Wa3JD36biwt9FKLbJRBk5ZdFxD2L1sDezhNC F1zTvb+71PhL97ICfODl0D+NMidRD7dqRLlSGsghcqZFX2gnx5L9AhAknULAYmijk+8b 2Sig== X-Gm-Message-State: ACrzQf2vA6KTjU3pfka5nvgVlJfvY3I3J7tNaHdrWzR5FaHFqp79Z/CK KQUIaF7+9ntx9MtL//GSfR0= X-Google-Smtp-Source: AMsMyM695+nbBpNkojeO19MuaG4v+yk8i21LCz0x8nFglnPUI0gipMzs5zmXcELeyFYxAdfpJGPU5g== X-Received: by 2002:a05:651c:1542:b0:26d:bf29:8cd5 with SMTP id y2-20020a05651c154200b0026dbf298cd5mr2469181ljp.304.1664625064426; Sat, 01 Oct 2022 04:51:04 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-171-209.bredband.tele2.se. [188.150.171.209]) by smtp.gmail.com with ESMTPSA id bf12-20020a2eaa0c000000b0026c603169aesm423513ljb.0.2022.10.01.04.51.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Oct 2022 04:51:03 -0700 (PDT) In-Reply-To: <83edvscdk8.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) 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:244110 Archived-At: 1 okt. 2022 kl. 07.34 skrev Eli Zaretskii : >> (What about printing it as "\u0080" instead? >=20 > NO!! \u0080 is something entirely different. Actually not -- (string 128) returns the multibyte string consisting of = the single char U+0080, which is exactly what you get by typing = "\u0080". It confuses me, too. That's a C1 control char and Emacs doesn't escape = it when printing, but it's displayed as `\200`. (I don't think changing that display to \u0080 would break any = compatibility; we should consider doing that for all C1 controls, = U+0080..U+009F.) Even more confusing is that "\x0080" means the same as "\u0080" but not = the same as "\x80", which is a unibyte string of a single raw byte.