X-Spam-Check-By: sourceware.org Message-ID: <44D26C47.6080405@netacquire.com> Date: Thu, 03 Aug 2006 14:36:07 -0700 From: Joachim Achtzehnter User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: line endings, file path names References: <44D0E959 DOT 70903 AT netacquire DOT com> <20060803075248 DOT GA23629 AT calimero DOT vinschen DOT de> <44D243B4 DOT 3050609 AT netacquire DOT com> <20060803190450 DOT GB5300 AT calimero DOT vinschen DOT de> In-Reply-To: <20060803190450.GB5300@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi Corinna, You wrote: > So, since millions of users have DOS and Mac lineending files, every > system in the world has to support them? I'm not suggesting that any system "has to" do anything, as the author or funder of a system you can decide what you want it to do. I'm trying to persuade you that it would be better for its users, and indirectly even for you because these kind of discussions would go away, if it did. > Sed does not support CRLF and CR line endings on POSIX systems. And it can to some extent get away with this because communication programs like ftp and http clients are supposed to translate line endings to the native convention when downloading text files from other systems. This doesn't always work because of user errors and incorrect file types, but on a native POSIX system one can at least legitimately assume that most files will have native line endings. In the case of Cygwin such an assumption is simply not warranted because Cygwin always runs on systems where CRLF is the native convention. > It just has a bad hack for Windows systems which is also enabled for > Cygwin. It is "bad" only when compared to a possible world without CRLF, but we, at least most of us, don't have the luxury of living in such a world. Software developers are often faced with requirements that seem less than desirable from an aesthetic point of view and we have to get things working in spite of it. This is one of those cases. > On other systems you have to take the official route over dos2unix or > recode or whatever. As I tried to explain above, at least on those other systems the need for dos2unix might be the exception instead of the rule. In spite of this, given that CRLF platforms are now so wide-spread and given how systems are now so inter-connected, even UNIX users are likely to benefit from text processing tools that tolerate both conventions, c.f. the pragmatic approach taken by XML. > Oh well, the longer this discussion takes, the more I regret my decision > to revert sed to textmode. This means my argumentation has been counter-productive. :( Note, I realize how entrenched the opposite point of view seems to be in this community and I don't have any illusions of quickly converting everybody. By sticking to arguments instead of emotions I was trying to avoid this very reaction of yours. My goal is to plant a thought in the back of people's minds so that perhaps gradually they might begin to appreciate my point of view and take it into account a little bit when similar calls need to be made again about one detail or another. Thanks for reading, Joachim -- work: joachima AT netacquire DOT com (http://www.netacquire.com) private: joachim AT kraut DOT ca (http://www.kraut.ca) -- 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/