This is the mail archive of the cygwin 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]

Why is a file specified in DOS format opened in binary mode?


(was Re: sed 4.1.5 adds extra CR with input file path in Windows format)

David Mastronarde wrote:
On Tue, 27 Jun 2006, Dave Kilroy wrote:
On 6/27/06, David Mastronarde wrote:
On Sun, 25 Jun 2006, Dave wrote:
David Mastronarde wrote:
After upgrading sed from 4.1.4 to 4.1.5, I found that line endings were
being converted from CRLF to CRCRLF when the input file was specified
with a windows file path:
Have a read of http://cygwin.com/cygwin-ug-net/using-textbinary.html

Try specifying the output file in MSDOS format, '.\sedtestout'.

So it all makes sense in terms of it following the rules. But I am curious as to the reason for rule b. Most things in Cygwin seem to deal interchangeably with windows and cygwin paths.

Sorry, can't help you there - this behaviour has been present longer than I have monitorred this list. A google didn't bring much enlightenment either.


Anyone else?

Dave.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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