From 3c7cb4bbcd56c17e1abba05f20d001a2484d9919 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Fri, 21 Aug 1998 13:30:00 -0400 Subject: snapshot of project "lynx", label v2-8-1dev_22 --- src/LYMain.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/LYMain.c') 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 -- cgit 1.4.1-2-gfad0