help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display corruption with binary files


From: Robert Thorpe
Subject: Re: Display corruption with binary files
Date: 26 Nov 2006 05:30:33 -0800
User-agent: G2/1.0

Perry Smith wrote:
> On Nov 25, 2006, at 5:04 AM, Eli Zaretskii wrote:
>
> >> From: August Karlstrom <fusionfive@comhem.se>
> >> Date: Sat, 25 Nov 2006 10:30:16 GMT
> >>>
> >>> Bits of the binary file being interpreted at terminal control
> >>> characters is a likely culprit.
> >>
> >> OK, but isn't a binary file as well as a text file really just a
> >> sequence of arbitrary bytes?
> >>
> >>> If that is the problem then Emacs should not send such characters to
> >>> the terminal.  It may be a terminal problem though.  I'd report
> >>> it as
> >>> an Emacs bug with that caveat.
> >>
> >> Eli Zaretskii's answer seems to indicate that this is a known
> >> problem.
> >
> > Yes, it's a known problem that the Unix terminal interprets certain
> > sequences of characters as commands.  I'm not sure Emacs can do
> > anything to solve this, but suggestions are welcome.
>
> I have not been closely watching this but I'm confused.
>
> emacs of old (I thought) would 'quote' the characters.  So, if the
> file had a control-C, emacs would display ^C and a single forward-
> character while the cursor is sitting on the ^ would move two screeen
> spaces up to the next character.  So, while emacs would send escape
> sequences itself to control the terminal, the data of the file would
> be sent properly.  (I'm not sure I'm saying clearly what I mean.)
>
> Is this not done?  Didn't emacs use to do it?

It may have been a terminal setup that did this.  I think I've seen
this behaviour in the past before too.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]