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


On Wed, 17 Aug 2005, Christopher Faylor wrote:

> On Wed, Aug 17, 2005 at 12:56:54PM -0400, Igor Pechtchanski wrote:
> >The fact that there are no standards for O_TEXT or "rt"/"wt" didn't
> >help my confusion any.
>
> Well, I guess just relying on the "common sense" philosophy of "I told
> it do do this, so that's what I'd expect it to do" is something that
> can't be relied on.
>
> >It seems that "wt" is rather useless, then.  If one wanted to always
> >produce a file with CRLF line endings, she'd open it with O_BINARY and
> >use "\r\n" sequences for line endings.
>
> Let's apply some common sense here, too.  You specify "wt", what would
> you expect?  You'd expect a file with CRLF endings, i.e., LF should be
> translated to CRLF.  And, amazingly enough, that's what you get.

Yes, I see, thanks.  The one point of this discussion that still remains
valid is that <http://cygwin.com/cygwin-ug-net/using-textbinary.html>
needs to be updated to reflect the availability of "rt"/"wt" modes for
fopen().
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA


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