This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ASCII and BINARY files. Why?


Hi, you wrote:

: Addressing the portability issue, including a "t" flag in a fopen call does
: not decrease portability in any way, as it will simply be ignored by any
: libraries which do not support it.

Is ignoring guaranteed on really all implementations, or do some produce
errors? And who assures you that some platform doesn't already use "t" with
another meaning?
I guess O_TEXT is less likely to cause an incompatibility.

FYI, I try to use the least common denominator only; what Richard Stevens'
"Advanced Programming in the UNIX Environment" doesn't explicitly mention
to work an all flavors of unix, I try to avoid.
It doesn't say anything about unimplemented type specifiers, and sure not
about fopen ignoring them. It only lists the ANSI ones.


Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de)
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]