delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/04/26/14:28:38

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Wed, 26 Apr 2000 15:29:14 -0400
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: hybrid text/binary mount
Message-ID: <20000426152914.E25220@cygnus.com>
Reply-To: cygwin-developers AT sourceware DOT cygnus DOT com
Mail-Followup-To: cgf AT cygnus DOT com, cygwin-developers AT sourceware DOT cygnus DOT com
References: <200004242026 DOT QAA06813 AT envy DOT delorie DOT com> <Pine DOT SGI DOT 4 DOT 10 DOT 10004261043050 DOT 111245-100000 AT cystine DOT cs DOT unc DOT edu>
Mime-Version: 1.0
User-Agent: Mutt/1.1.12i
In-Reply-To: <Pine.SGI.4.10.10004261043050.111245-100000@cystine.cs.unc.edu>; from juliano@cs.unc.edu on Wed, Apr 26, 2000 at 10:53:56AM -0400

On Wed, Apr 26, 2000 at 10:53:56AM -0400, Jeffrey Juliano wrote:
>> > I think that most output is done in more than one character at a time
>> > mode.
>> 
>> Yeah, but consider, for example, raw PBM files.  The first few lines
>> are text lines, but after that the data is binary.  One could easily
>
>FYI, emacs has done automatic UNIX/DOS/MAC detection for a while now.  I
>use NTemacs all the time, and I don't think it's ever guessed wrong for
>me.  I just tested on a raw PBM file, and it got it right.

I assume that emacs can do that because it probably reads in the whole
file and can guess much more precisely.  'vim' also seems to be pretty
good at guessing for the same reason.  I have had situations where 'vim'
fails to guess correctly, though.

cgf

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019