From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!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: Thu, 8 Jun 2017 13:35:45 -0700 Organization: UCLA Computer Science Department Message-ID: 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1496954174 23541 195.159.176.226 (8 Jun 2017 20:36:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Jun 2017 20:36:14 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 Cc: 27270@debbugs.gnu.org, v.schneidermann@gmail.com, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 08 22:36:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJ4A6-0005ua-3t for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Jun 2017 22:36:10 +0200 Original-Received: from localhost ([::1]:51397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJ4AB-0002i9-5l for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Jun 2017 16:36:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJ4A1-0002ga-1P for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 16:36:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJ49x-0007yH-Uj for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 16:36:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32846) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJ49x-0007xs-QR for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 16:36:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dJ49x-0003MA-Jh for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2017 16:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Jun 2017 20:36:01 +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: Original-Received: via spool by 27270-submit@debbugs.gnu.org id=B27270.149695415512889 (code B ref 27270); Thu, 08 Jun 2017 20:36:01 +0000 Original-Received: (at 27270) by debbugs.gnu.org; 8 Jun 2017 20:35:55 +0000 Original-Received: from localhost ([127.0.0.1]:35523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJ49r-0003Lm-Ac for submit@debbugs.gnu.org; Thu, 08 Jun 2017 16:35:55 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJ49p-0003LW-QR for 27270@debbugs.gnu.org; Thu, 08 Jun 2017 16:35:54 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 429271600D3; Thu, 8 Jun 2017 13:35:47 -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 r66o9QNdkifw; Thu, 8 Jun 2017 13:35:46 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 879FC1600D5; Thu, 8 Jun 2017 13:35:46 -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 h-FQ4-zgzeEJ; Thu, 8 Jun 2017 13:35:46 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 160E11600D3; Thu, 8 Jun 2017 13:35:46 -0700 (PDT) In-Reply-To: <83shja6yoq.fsf@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133410 Archived-At: On 06/08/2017 12:56 PM, Eli Zaretskii wrote: > How do you know "\2205" is a two character string Because I use Emacs out of the box, with the default printable-chars. > >> The difference is that I don't use display tables and don't want to use >> them. In contrast, I would like to use hexadecimal display, if it worked >> as well as octal does (which it does not). > Then we need to code a separate feature in the Lisp reader, I think. What do you think of using capital X for hexadecimal escapes with at most two digits? That way, "\X905" would be a two-character string, which is what is wanted here. Or we could use small h for hexadecimal, and "\h905". If we were feeling ambitous and concise, we could use no character at all and upper-case hex digits for bytes in the range 0x80 through 0xFF; this would be unambiguous in strings (the example would be "\905"). This may be a bridge too far, though.