From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert Thorpe" Newsgroups: gmane.emacs.help Subject: Re: Display corruption with binary files Date: 26 Nov 2006 05:30:33 -0800 Organization: http://groups.google.com Message-ID: <1164547833.440075.133030@14g2000cws.googlegroups.com> References: <1164368979.309609.307320@45g2000cws.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1164548501 24907 80.91.229.2 (26 Nov 2006 13:41:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2006 13:41:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 26 14:41:39 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GoKGI-0000nZ-80 for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Nov 2006 14:41:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GoKGH-0007Vq-O0 for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Nov 2006 08:41:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!14g2000cws.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: 193.120.103.181 Original-X-Trace: posting.google.com 1164547839 1655 127.0.0.1 (26 Nov 2006 13:30:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 26 Nov 2006 13:30:39 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 14g2000cws.googlegroups.com; posting-host=193.120.103.181; posting-account=hWoAPxMAAAAnBKSBz1ZivwUPPjEuve7bvVCHZQ8rhrluPfwcBJd92w Original-Xref: shelby.stanford.edu gnu.emacs.help:143399 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39016 Archived-At: Perry Smith wrote: > On Nov 25, 2006, at 5:04 AM, Eli Zaretskii wrote: > > >> From: August Karlstrom > >> 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.