Mail Archives: djgpp/2000/07/13/16:21:59
> > 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.
>
> Not by any existing standard definition of the C programming language
> or C library functions I've seen. By definition of the language,
> absence of 'b' clearly means 'text file', *not* default.
I'm telling you what *is*, not what *should be*.
> In my not so humble opinion, '_fmode' is one of the silliest things
> DOS compilers ever came up with.
Perhaps, but it is quite handy to have around.
> > In cygwin, the "default" comes from the mount table, and is often
> > "binary", so the "t" is a good idea.
>
> I oppose to this view. The only truly good idea is to fix the programs
> on source level.
You're thinking the wrong way. What I do is mount all my NT local
drives as text, and my unix/samba drives as binary. That way, when I
redirect to the unix drives, everything saves the files in unix text
format.
- Raw text -