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: Thu, 06 Oct 2022 14:13:43 +0300 Message-ID: <83v8oxp5lk.fsf@gnu.org> References: <7824372D-8002-4639-8AEE-E80A6D5FEFC6@gmail.com> <877d1l55rn.fsf@gnus.org> <469814C2-197A-4BCA-8E2A-245577340C1E@gmail.com> <878rlzj1zv.fsf@gnus.org> <878rlzfylg.fsf@gnus.org> <017DAAA2-0383-4B47-855E-28348B2E9F06@gmail.com> <831qrnx1jc.fsf@gnu.org> <83k05fv9nv.fsf@gnu.org> <52286A5C-D947-4279-812E-173BB44046E1@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39464"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58168@debbugs.gnu.org, larsi@gnus.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 06 13:29:58 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 1ogP4g-000A9Z-5K for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 13:29:58 +0200 Original-Received: from localhost ([::1]:50264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogP4f-0006vf-5K for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 07:29:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogOpG-00013C-NF for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 07:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogOpG-0005bI-DF for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 07:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogOpF-0000qf-UU for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 07:14: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: Thu, 06 Oct 2022 11:14: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.16650548383244 (code B ref 58168); Thu, 06 Oct 2022 11:14:01 +0000 Original-Received: (at 58168) by debbugs.gnu.org; 6 Oct 2022 11:13:58 +0000 Original-Received: from localhost ([127.0.0.1]:59102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogOpC-0000qF-BV for submit@debbugs.gnu.org; Thu, 06 Oct 2022 07:13:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogOp9-0000q2-Gx for 58168@debbugs.gnu.org; Thu, 06 Oct 2022 07:13:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33062) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogOp2-0005ZA-CG; Thu, 06 Oct 2022 07:13:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=YHSNjDypIQzIyN3xFP0Z4vUzA/rVT+eBD3VcOOvlo8s=; b=lsJpSIHOxjfJfXBGXSqj QCZRgin561UXQbx3m2HLLuLt6RR1aNXG7SzVciKUI8+2ZFToCnuvVuP807eNYQMRNbSAAwgDIS1hV fw4JwRqIPKLF2z2Hkp2DGZt0uQBcd0e/l0nbAvxJfibaMkHqnAe9M0aymteKHogRyTO3A42MZoaZR m9DAyP1CZeApRGYF5eXpBkVjVwX0HqYxqFi2CYvN3PEAA+3U8HdVJ76z8rLVeb9ziEPJ+ftMCf3qB 9Cv1tm4kq2AoUomjw7DDH17N0k5QTLst6yWPMRLLff+kmpnmxT9h2pj+Y0FvyNwMz/kMAyG6ewhhU 46COrJIFgKhp6Q==; Original-Received: from [87.69.77.57] (port=3936 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 1ogOp1-0004O2-BB; Thu, 06 Oct 2022 07:13:47 -0400 In-Reply-To: <52286A5C-D947-4279-812E-173BB44046E1@gmail.com> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Thu, 6 Oct 2022 11:05:51 +0200) 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:244639 Archived-At: > From: Mattias Engdegård > Date: Thu, 6 Oct 2022 11:05:51 +0200 > Cc: larsi@gnus.org, > 58168@debbugs.gnu.org > > 4 okt. 2022 kl. 18.24 skrev Eli Zaretskii : > > >> This treats unibyte format strings as if they were Latin-1 for the purpose of the error message. > > > > No, it doesn't. It shows the problematic characters as raw bytes, as > > in "%\200" (where \200 is a single character). If you see something > > different, please show the recipe. > > (format-message "%\345" 0) > => (error "Invalid format operation %å") And you want to show %\345 instead? Are you sure this is not the consequence of inserting the error message into a multibyte buffer? > > Who said anything about #x3fffc? The original code had #xfc, the > > unibyte code for #x3ffffc. > > There seems to be a misunderstanding. The original (and current) code attempts to display char #x3fffc, which is not a raw byte. It's just a typo for #x3ffffc -- not a big deal. But your change replaced it with \xfc, which is what I questioned. Why not test both #x3ffffc and #xfc? And the same question about \777777 vs \374.