From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#27270: display-raw-bytes-as-hex generates ambiguous output for Emacs strings Date: Mon, 25 Apr 2022 09:49:15 -0700 Organization: UCLA Computer Science Department Message-ID: <28b0e428-9243-9817-c1e8-950fe357f386@cs.ucla.edu> References: <29d6844f-2f6f-11c1-7877-a9d169e613f8@cs.ucla.edu> <83tw3s8jhr.fsf@gnu.org> <1c05b888-0c4a-05c8-248a-6e550637fff4@cs.ucla.edu> <8737bbxp6a.fsf@users.sourceforge.net> <2d5a8cd8-0884-bc1e-4298-a84dca61acbf@cs.ucla.edu> <831squ8no8.fsf@gnu.org> <93d9c575-4eb2-ea9e-d998-a8f3cff33a1e@cs.ucla.edu> <83y3t271ar.fsf@gnu.org> <83shja6yoq.fsf@gnu.org> <83r2yt7lad.fsf@gnu.org> <2202b54b-606f-0a10-abf7-5cb1a9164897@cs.ucla.edu> <87k0bfsxvk.fsf@gnus.org> <87sfq2d8qi.fsf@gnus.org> <04ac11a4-91a6-00f9-1a12-07e5f62b46b4@cs.ucla.edu> <87fsm17grt.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25240"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Cc: v.schneidermann@gmail.com, 27270@debbugs.gnu.org, npostavs@users.sourceforge.net To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 25 18:50:34 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 1nj1v0-0006VX-E7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Apr 2022 18:50:34 +0200 Original-Received: from localhost ([::1]:33014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nj1uz-0006hh-7C for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Apr 2022 12:50:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nj1uV-0006hX-9h for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2022 12:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nj1uU-0003pF-Rn for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2022 12:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nj1uU-00006Y-Kz for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2022 12:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Apr 2022 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27270 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 27270-submit@debbugs.gnu.org id=B27270.1650905363351 (code B ref 27270); Mon, 25 Apr 2022 16:50:02 +0000 Original-Received: (at 27270) by debbugs.gnu.org; 25 Apr 2022 16:49:23 +0000 Original-Received: from localhost ([127.0.0.1]:35961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nj1tr-00005a-1R for submit@debbugs.gnu.org; Mon, 25 Apr 2022 12:49:23 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:36704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nj1tq-00005I-7o for 27270@debbugs.gnu.org; Mon, 25 Apr 2022 12:49:22 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id AF2C61600DB; Mon, 25 Apr 2022 09:49:16 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id jFKb8pjBi_xc; Mon, 25 Apr 2022 09:49:16 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id F32491600E5; Mon, 25 Apr 2022 09:49:15 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id MasjtykqZYA7; Mon, 25 Apr 2022 09:49:15 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id AD9D11600DB; Mon, 25 Apr 2022 09:49:15 -0700 (PDT) Content-Language: en-US In-Reply-To: <87fsm17grt.fsf@gnus.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" Xref: news.gmane.io gmane.emacs.bugs:230664 Archived-At: On 4/25/22 00:40, Lars Ingebrigtsen wrote: > Comparing this to SQL injection is far fetched Call me paranoid if you like. (Can you tell I used to work for a computer security company? :-) And to be honest my main motivation is irritation that cut-and-paste doesn't work, not security. > We have a similar issue with the octal printer -- if you print something > out with it, and you end up with something displayed as foo\205bar, you > cut and paste that from -nw, and you save it into a file, Nobody expects things to work if you output with one quoting scheme and input with a different one. But cutting and pasting from Emacs's read-eval-print-loop is expected to work. > display-raw-bytes-as-hex is a display setting. You want to change it so > that the data output will be different No, I would like to change only the display. (I had suggested otherwise in comment #5 of this bug report, but was mistaken and took that suggestion back in later comments.)