Re: problems with gawk 3.1.5-3 hanging -- more info

2006-03-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to David Carter on 3/30/2006 1:33 PM: > > Also, I took a look at some of the source for other utilites that work > with text input; these included tail, head, cat, and sed. I don't see > any of those utilities opening up the input file the w

Re: problems with gawk 3.1.5-3 hanging -- more info

2006-03-30 Thread Igor Peshansky
On Thu, 30 Mar 2006, David Carter wrote: > Igor Peshansky wrote: > > On Thu, 30 Mar 2006, David Carter wrote: > > > It appears to me that by opening the file as O_TEXT, that gawk is > > > hanging because it is waiting for that LF char to follow the CR > > > (which never comes). Does this sound lik

Re: problems with gawk 3.1.5-3 hanging -- more info

2006-03-30 Thread David Carter
Igor Peshansky wrote: On Thu, 30 Mar 2006, David Carter wrote: It appears to me that by opening the file as O_TEXT, that gawk is hanging because it is waiting for that LF char to follow the CR (which never comes). Does this sound likely to you? If this theory were true, "echo -ne 'aa\rb' | gaw

Re: problems with gawk 3.1.5-3 hanging -- more info

2006-03-30 Thread Igor Peshansky
On Thu, 30 Mar 2006, David Carter wrote: > Corinna Vinschen wrote: > > > O_TEXT is correct because gawk is a text tool in the first place and > > it should treat input lines identical, regardless if they have DOS > > or UNIX lineendings. > > [snip] > It appears to me that by opening the file as O_

Re: problems with gawk 3.1.5-3 hanging -- more info

2006-03-30 Thread David Carter
Corinna Vinschen wrote: O_TEXT is correct because gawk is a text tool in the first place and it should treat input lines identical, regardless if they have DOS or UNIX lineendings. Hi Corinna, thanks for the prompt reply. If I understand you correctly, the fix in -3 has to do with converting

Re: problems with gawk 3.1.5-3 hanging -- more info

2006-03-30 Thread Corinna Vinschen
On Mar 30 13:29, David Carter wrote: > I've taken a look at the differences between -2 and -3; here's the diff: > > $ diff -r gawk-3.1.5-2 gawk-3.1.5-3 > diff -r gawk-3.1.5-2/posix/gawkmisc.c gawk-3.1.5-3/posix/gawkmisc.c > 223a224 > >#include > 237a239,244 > > > >void > >cygwin_premain2 (int arg

Re: problems with gawk 3.1.5-3 hanging -- more info

2006-03-30 Thread David Carter
I've taken a look at the differences between -2 and -3; here's the diff: $ diff -r gawk-3.1.5-2 gawk-3.1.5-3 diff -r gawk-3.1.5-2/posix/gawkmisc.c gawk-3.1.5-3/posix/gawkmisc.c 223a224 #include 237a239,244 void cygwin_premain2 (int argc, char **argv, struct per_process *myself) { setmode (

problems with gawk 3.1.5-3 hanging

2006-03-30 Thread David Carter
Hi all: First, I found another gentleman with a similar issue in the mailing list archive: http://www.cygwin.com/ml/cygwin/2006-03/msg00425.html Seems he thought the problem wasn't with gawk 3.1.5-3 in the end, however I'm having very similar issues with gawk hanging and it only happens wit