delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | Chris Faylor <cgf AT cygnus DOT com> |
Date: | Sat, 7 Oct 2000 14:16:22 -0400 |
To: | Cygwin <cygwin AT sources DOT redhat DOT com> |
Subject: | Re: A dumb CR/LF question |
Message-ID: | <20001007141622.A28911@cygnus.com> |
Reply-To: | cygwin AT sources DOT redhat DOT com |
Mail-Followup-To: | Cygwin <cygwin AT sources DOT redhat DOT com> |
References: | <026101c03077$5a86a970$0600000a AT tired> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.6i |
In-Reply-To: | <026101c03077$5a86a970$0600000a@tired>; from haynes@anchorgaming.com on Sat, Oct 07, 2000 at 09:57:54AM -0600 |
On Sat, Oct 07, 2000 at 09:57:54AM -0600, Dan Haynes wrote: >I'm using 1.1.4 now, just upgraded from B20.1 which I've been using for >a good long while. I did a fresh install from the net about a week >ago, using all defaults. Now I do a: > >cat ./build/f1 ./build/f2 | sort >/tmp/f3 > >Passing the output through some utiltities like 'sort' causes line >endings to be expanded to CR CR LF (two carriage returns and a line >feed) Thanks for the report. It wasn't a dumb question at all. I don't think that you are the first to report this, but it finally sunk into my feeble brain that there may be a problem here. I took some time to investigate this, and there is actually a problem in the rewritten \r\n text handling code in cygwin. It looks like the problem has existed since 1.1.1. The symptom is that when cygwin wrote out a buffer, it would add a \r in front of any \n regardless of whether the '\n' was already preceded by a \r or not. I've fixed this, so it will be in the next snapshot. Please give it a try. I'd like to nail this down for 1.1.5. Thanks for the bug report with a simple example that I could easily duplicate. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |