Eric Blake scripsit:
> John Cowan <cowan <at> ccil.org> writes:
>
> > Are you saying that an O_TEXT open under Cygwin, given a binary mount,
> > will cause newline translation? I had assumed that O_TEXT would be
> > ignored under Cygwin just as it is under Linux.
>
> Yes. The cygwin behavior is as follows:
Okay. I see why you do that, but it does kinda undermine the argument
that "Cygwin should behave like Linux", since this is a conspicuous
example of it *not* behaving like Linux.
> Using O_BINARY is important, however, I claim that using O_TEXT in portable
> code should be a very rare circumstance. There's a reason that C99 only
> calls
> out fopen("r") and fopen("rb"), but not fopen("rt").
Okay, fair enough.
--
Evolutionary psychology is the theory John Cowan
that men are nothing but horn-dogs, http://www.ccil.org/~cowan
and that women only want them for their money. [EMAIL PROTECTED]
--Susan McCarthy (adapted)
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils