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]

Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.


Ken Thompson wrote:

I don't think the behavior should be changed. d2u stands for dos to unix
which means \r\n to \n.  Why would one expect a dos to unix utility to
convert mixed line terminator files.  If you need such a utility, then add
one but don't take a utility that does dos to unix and try to turn it in to
"anything" to unix or if you do then change the name. Just my 2 cents worth



And it would agree that it should be changed. I would expect dos to unix to turn \r\n into \n, ignoring the fact it may or may not wander into a \n first.

I'd also like to express interest in having this changed. I knocked up my own program to do this, because particularily in cygwin I find it easy to accidentally edit a file in a few different editors and end up with a mess of line endings which need to be all syncronised to one system (of course I could just learn to not mess my files up ^_^ )

Chris



--
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]