This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: problems with gawk 3.1.5-3 hanging -- more info
- From: David Carter <carter at pondol dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 30 Mar 2006 13:29:27 -0600
- Subject: Re: problems with gawk 3.1.5-3 hanging -- more info
- References: <442C25D0.7030605@pondol.com>
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 <stdio.h>
237a239,244
void
cygwin_premain2 (int argc, char **argv, struct per_process *myself)
{
setmode (fileno (stdin), O_TEXT);
}
...that's the only difference between the two source trees.
Not having looked at cygwin-specific source before, I'm going to guess
that cygwin_premain2 is a hook which is called at program execution
time, since there is no call to cygwin_premain2 in the source code.
I think the problem is the O_TEXT. If I change this to O_BINARY and
recompile, everything works swimmingly. The question now is: should the
file really be opened as O_TEXT, or as O_BINARY?
Can anyone set me straight on this?
Regards;
David Carter
--
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/