delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/04/24/15:25:32

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
Date: Mon, 24 Apr 2000 16:26:04 -0400
Message-Id: <200004242026.QAA06813@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: cygwin-developers AT sourceware DOT cygnus DOT com
In-reply-to: <20000424160646.F1469@cygnus.com> (message from Chris Faylor on
Mon, 24 Apr 2000 16:06:46 -0400)
Subject: Re: hybrid text/binary mount
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>

> 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.

I'm mostly trying to cater to the cases where cygwin programs
interact.  In auto mode, a program should accept any type of file
correctly, and produce a file that any cygwin program will interpret
correctly.  It's not an ideal solution (due to interactions between
cygwin programs and non-cygwin programs) but it will cover many of the
common cases.  Programs that really care should use non-auto mode and
interpret the file their own ways, as usual.

- Raw text -


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