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, 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.

cgf


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