bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bugs found on bison/m4 on windows


From: Paul Eggert
Subject: Re: bugs found on bison/m4 on windows
Date: Fri, 02 Jul 2004 10:09:09 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Kees Dekker <address@hidden> writes:

> Please also consider next change (scan-skel.l:47-), i.e.
> change from strcmp to strncmp to prevent string compare problems if \r\n is
> at the end of the string.

I would rather not contort the Bison code proper to deal with this, as
there are probably other places where \r gets in the way.  I'd rather
remove the carriage returns systematically.  I looked at the source
code to the port that you mentioned, and found this in lib/subpipe.h:

# define pipe(a) _pipe((a), 0, _O_BINARY | O_NOINHERIT)

This appears to be the problem.  Change that _O_BINARY to _O_TEXT and
I'd guess your problem will go away.


> However, m4 do not like case b.

As mentioned earlier I think this problem is with the Microsoft
Windows port, not with Bison or M4 itself, so it's really out of scope
here: we don't maintain it.  I have reported your bugs to the
developers of that port, and it's bug 984194 there: see
<http://sourceforge.net/tracker/index.php?func=detail&aid=984194&group_id=23617&atid=379173>.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]