all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Subject: Re: Display corruption with binary files
Date: Sun, 26 Nov 2006 22:23:19 +0200	[thread overview]
Message-ID: <u1wnq5554.fsf@gnu.org> (raw)
In-Reply-To: <16D0F7A9-0BEF-4513-BD37-A76CA67F0952@easesoftware.com> (message from Perry Smith on Sat, 25 Nov 2006 22:55:45 -0600)

> Cc: help-gnu-emacs@gnu.org
> From: Perry Smith <pedz@easesoftware.com>
> Date: Sat, 25 Nov 2006 22:55:45 -0600
> 
> On Nov 25, 2006, at 10:09 PM, Eli Zaretskii wrote:
> 
> >> Cc: help-gnu-emacs@gnu.org
> >> From: Perry Smith <pedz@easesoftware.com>
> >> Date: Sat, 25 Nov 2006 18:34:04 -0600
> >>
> >> On my Mac system, there is a version of emacs 21.2.1 in /usr/bin/
> >> emacs.  I have a bzip tar file.  I type:
> >>
> >> emacs foo.tar.bz2
> >>
> >> from a Mac "terminal" window (not an X11 window) and it comes up just
> >> fine: inside the terminal.  I can move around just like I remember.
> >
> > Maybe whoever built that version of Emacs for the Mac did something
> > special to it.
> 
> I get the same results with the emacs on the RS/6000 that I built  
> personally.  I simple did configure and make.  That emacs is 21.4.1.

Okay, I see that I've misunderstood the point and responded in a way
that could cause a terrible confusion.  Let me try to clarify.

Yes, Emacs does display control characters as ^c or \XXX.  However, it
does so only for certain characters (mainly, 8-bit characters and
low-end 7-bit characters).  It is quite possible that an arbitrary
binary garbage could be interpreted by Emacs as non-ASCII characters
and cause some terminal control sequence be written to the display.
Also, I think control characters that come from a display table (for
those who know what that is) are output verbatim.

So, to summarize, Emacs mostly does TRT with unprintable characters,
but not always, and visiting a binary file in the default multibyte
mode could plausibly cause related problems.

Sorry for any confusion I could have caused with my earlier messages
in this thread.

  parent reply	other threads:[~2006-11-26 20:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-23 22:05 Display corruption with binary files August Karlstrom
2006-11-24 11:49 ` Robert Thorpe
2006-11-25 10:30   ` August Karlstrom
2006-11-25 11:04     ` Eli Zaretskii
2006-11-25 16:38       ` Perry Smith
2006-11-25 21:02         ` Eli Zaretskii
2006-11-26  0:34           ` Perry Smith
2006-11-26  4:09             ` Eli Zaretskii
2006-11-26  4:55               ` Perry Smith
2006-11-26  9:19                 ` Arjen Wiersma
2006-11-26 20:23                 ` Eli Zaretskii [this message]
     [not found]       ` <mailman.1101.1164472694.2155.help-gnu-emacs@gnu.org>
2006-11-26 13:30         ` Robert Thorpe
2006-11-25 12:42     ` Peter Dyballa
     [not found]     ` <mailman.1089.1164458537.2155.help-gnu-emacs@gnu.org>
2006-11-25 13:16       ` August Karlstrom
     [not found]     ` <mailman.1086.1164452697.2155.help-gnu-emacs@gnu.org>
2006-11-27 20:50       ` Stefan Monnier
2006-11-24 18:37 ` Eli Zaretskii
     [not found] ` <mailman.1054.1164416983.2155.help-gnu-emacs@gnu.org>
2006-11-25 10:30   ` August Karlstrom
2006-11-25 10:42     ` August Karlstrom
2006-11-25 13:15       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u1wnq5554.fsf@gnu.org \
    --to=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.