This is the mail archive of the cygwin-apps 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]
Other format: [Raw text]

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


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