Ethereal-dev: Re: [Ethereal-dev] bug in ascend/lucent parser under WIN32

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Wed, 5 Dec 2001 23:12:36 -0800
On Thu, Dec 06, 2001 at 10:23:57AM +0900, Motonori Shindo wrote:
> I found a bug in ascend-grammer.y; Ascend/Lucnet debug output can't be
> read under Win32 environment. This is because it opens "/dev/null" but
> such a file doesn't exist under Win32, ending up with writing to NULL
> file pointer. Here's a patch to fix this problem. I think "NUL:"
> special file exists in all Win32 environments Ethereal is supporting
> (i.e.Win95, Win98, WinMe, WinNT, Win2K), but not sure about WinXP.
> Cany anyone confirm?

I don't have NT 5.1^H^H^H^H^H^HXP handy, so I can't check that; I could
check NT 4.0 when I reboot my home machine, and NT 5.0^H^H^H^H^H^HW2K
when I get in to work.

However, if we could find another way to get Flex not to print the
newlines, that might be a cleaner solution; could the ".l" file be fixed
to make Flex's action for a newline something other than "print it to
the standard output"?