[Top][All Lists]

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

lynx-dev CRLF bug upon Lynx exit

From: Fiber McGee
Subject: lynx-dev CRLF bug upon Lynx exit
Date: Sat, 11 Nov 2000 01:06:21 -0600

The message below from "Town, Brad"
<address@hidden> was forwarded by
the list maintainer.

With a Cygwin build, when Lynx exits with errors, it doesn't use text mode
with stdout properly.  It is setting stdout to binary mode before the text
has been flushed.

The attached patch to LYMainLoop simply adds a fflush(stdout) before setting
stdout's mode back to binary.

lynx -version
Lynx Version 2.8.3rel.1 (23 Apr 2000)
Built on cygwin Nov  9 2000 14:53:30

uname -a
CYGWIN_NT-5.0 DECATUR 1.1.6(0.30/3/2) 2000-11-09 10:44 i686 unknown

--- LYMainLoop.c        Wed Apr 19 21:57:56 2000
+++ LYMainLoop.c.mine   Thu Nov  9 17:10:48 2000
@@ -7564,6 +7564,7 @@
        SetOutputMode( O_TEXT );
        fputs(buf, stdout);
+       fflush(stdout);
        SetOutputMode( O_BINARY );

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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