www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/01/22/06:31:20

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: Answer to your text == binary question
22 Jan 1999 06:31:20 -0800 :
Message-ID: <19990122090152.A25864.cygnus.cygwin32.developers@cygnus.com>
References: <3 DOT 0 DOT 5 DOT 32 DOT 19990121180733 DOT 0080b490 AT pop DOT ne DOT mediaone DOT net>
Mime-Version: 1.0
To: cygwin32-developers AT cygnus DOT com
Cc: "Pierre A. Humblet" <Pierre DOT Humblet AT eurecom DOT fr>

This is the way things are *supposed* to work:

1) An argument (O_TEXT, O_BINARY) to open takes precedence over everything.

2) The mount option for the directory enclosing the file (or even the
   file itself) takes precedence if no argument (O_TEXT, O_BINARY) is given.
   This is for anything in the mount table.

3) For disk devices that are not in the mount table the default
   is O_TEXT.

4) For anything else (including pipes) the default is binmode
   unless CYGWIN=nobinmode is specified.

If cygwin is not working this way currently then *IT'S A BUG*.

Is this clear to everyone?  Does anyone feel like writing a test
suite that checks this behavior?

cgf

- Raw text -


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