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

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:27:24 -0400
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: hybrid text/binary mount
Message-ID: <20000426152724.D25220@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: <200004241831 DOT OAA05979 AT envy DOT delorie DOT com> <20000424150424 DOT A1421 AT cygnus DOT com> <200004241934 DOT PAA06421 AT envy DOT delorie DOT com> <20000424160646 DOT F1469 AT cygnus DOT com> <200004242026 DOT QAA06813 AT envy DOT delorie DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.1.12i
In-Reply-To: <200004242026.QAA06813@envy.delorie.com>; from dj@delorie.com on Mon, Apr 24, 2000 at 04:26:04PM -0400

On Mon, Apr 24, 2000 at 04:26:04PM -0400, DJ Delorie 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
>assume that it's a text file from the first few writes, but it's not.
>Only if the user uses stdio, and the buffer happens to be big enough
>(and not flushed, or line buffered), will it guess right.

So, we'll be no worse off with raw PBM files than we are right now.
This is obviously not 100% foolproof.  That may be a reason not
to even consider it because it will make problems a lot harder
to track down.

cgf

- Raw text -


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