This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
RE: upload: diffstat-1.40-1, tar-1.15.1-1
- From: "Gary R. Van Sickle" <g dot r dot vansickle at worldnet dot att dot net>
- To: <cygwin-apps at cygwin dot com>
- Date: Wed, 17 Aug 2005 20:16:24 -0500
- Subject: RE: upload: diffstat-1.40-1, tar-1.15.1-1
> From: Eric Blake
> Sent: Wednesday, August 17, 2005 11:47 AM
> To: cygwin-apps@cygwin.com
> Subject: Re: upload: diffstat-1.40-1, tar-1.15.1-1
>
> > >
> > >I'm not sure this is correct. fopen(..., "rt") should create LF
> > >endings on binary mounts and CRLF on text mounts... IIUC,
> the open
> > >mode is a hint to the underlying filesystem whether line ending
> > >translation should be done -- the actual translation is
> done based on the mount type.
> >
> > Opening with "rt" bypasses the underlying mount type. And, it only
> > opens the file for read.
>
> But opening with "rt" is non-POSIX,
No it isn't. POSIX requires any CRT that doesn't understand or care about
the second character to ignore it.
> while opening with "r" or
> "rb" is POSIX,
Well "r" is (but shouldn't be), but I don't recall POSIX saying any more
about "rb" than it does about "rt", i.e. what I paraphrased above.
--
Gary R. Van Sickle