Mail Archives: cygwin-developers/1999/01/22/06:31:20
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 -