Mail Archives: cygwin-developers/2000/04/24/16:10:43

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: <>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <>
Date: Mon, 24 Apr 2000 14:11:15 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: hybrid text/binary mount
To: DJ Delorie <dj AT delorie DOT com>, cygwin-developers AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

--- DJ Delorie <dj AT delorie DOT com> 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.
> 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.

I agree with DJ.  Write should default to binary with this feature.  The only
reported Win32 program that doesn't work correctly with UNIX style line endings
is NOTEPAD.  NOTEPAD opens it's files in binary mode and searches for the \r to
know when to advance to the next line. :(

   Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <>
           __Minimalist GNU for Windows__
  Mingw32 List: <>
    Mingw Home: <>

Do You Yahoo!?
Send online invitations with Yahoo! Invites.

- Raw text -

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