about summary refs log tree commit diff stats
path: root/src/LYMain.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-08-21 13:30:00 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1998-08-21 13:30:00 -0400
commit3c7cb4bbcd56c17e1abba05f20d001a2484d9919 (patch)
tree30f608a2a7c6355ee69d6b061ed3fd458010ad75 /src/LYMain.c
parent0eae931d4f0fd1194dfcd978c3d94079b710923f (diff)
downloadlynx-snapshots-3c7cb4bbcd56c17e1abba05f20d001a2484d9919.tar.gz
snapshot of project "lynx", label v2-8-1dev_22
Diffstat (limited to 'src/LYMain.c')
-rw-r--r--src/LYMain.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/LYMain.c b/src/LYMain.c
index cb5b1310..78a8a10a 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -1053,6 +1053,10 @@ PUBLIC int main ARGS2(
     StrAllocCat(LYTraceLogPath, "/Lynx.trace");
 #endif /* VMS */
     if (TRACE && LYUseTraceLog) {
+#if defined(__DJGPP__) || defined(_WINDOWS)
+	_fmode = O_TEXT;
+#endif /* __DJGPP__  or _WINDOWS */
+
 	/*
 	 *  If we can't open it for writing, give up.
 	 *  Otherwise, on VMS close it, delete it and any
@@ -1062,6 +1066,10 @@ PUBLIC int main ARGS2(
 	if ((LYTraceLogFP = LYNewTxtFile(LYTraceLogPath)) == NULL) {
 	    WWW_TraceFlag = FALSE;
 	    fprintf(stderr, "%s\n", TRACELOG_OPEN_FAILED);
+
+#if defined(__DJGPP__) || defined(_WINDOWS)
+		_fmode = O_BINARY;
+#endif /* __DJGPP__ or _WINDOWS */
 	    exit(-1);
 	}
 #ifdef VMS