Mail Archives: djgpp/2000/07/13/10:10:54
On Thu, 13 Jul 2000, Olaf van der Spek wrote:
> > Absence of 'b' means *default*, which can still be binary if you (or
> > the application, if you are a library) have set the _fmode variable
> > appropriately.
> >
> > In cygwin, the "default" comes from the mount table, and is often
> > "binary", so the "t" is a good idea.
>
> But it caused popen to fail, so it doesn't seem that good to me always.
If "wt" fails, it means that the library you are using is non-ANSI. ANSI
C defines the "t" flag and requires a complying library to support it
(which on Unix means simply to ignore it).
If the C library on your machine is not ANSI-compliant, then you indeed
should not use "t".
- Raw text -