Mail Archives: cygwin/2000/10/07/14:42:35
Yikes - I didn't expect it to be a bug! :-\ I was standing by waiting for
837 people to respond saying "IF ANYONE BRINGS UP THIS SAME CRLF ISSUE AGAIN
THERE WILL BE BLOODSHED!" ;-) :-)
I'll grab the next snapshot and give it a try. Thanks!
If anyone else is having problems with this and needs a quick fix, tossing a
"tr -s '\r'" at the end of the pipeline fixes it up just fine.
Thanks again,
Dan
> -----Original Message-----
> From: cygwin-owner AT sources DOT redhat DOT com
> [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Chris Faylor
> Sent: Saturday, October 07, 2000 12:16 PM
> To: Cygwin
> Subject: Re: A dumb CR/LF question
>
>
> 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
>
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -