lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV DOS bug in ac104


From: Doug Kaufman
Subject: LYNX-DEV DOS bug in ac104
Date: Mon, 29 Dec 1997 00:31:09 -0800 (PST)

I just noticed that graphic file displays via VIEWER were no longer
working in DOS since at least ac-0.102.  The cause was a misplaced switch
into text mode, causing binary files to be truncated.  The following patch
fixes the problem and includes the fix of the typo that I reported
recently.
                             Doug

*** lynx2-7-1/src/LYrcFile.c    Thu Dec 18 09:31:02 1997
--- lynx2-7-1/src/LYrcFile.c.new        Mon Dec 29 00:13:26 1997
***************
*** 34,42 ****
      sprintf(rcfile, "%s/.lynxrc", Home_Dir());
  #endif /* VMS */
  #endif /* DJGPP */
- #if defined(__DJGPP__) || defined(_WINDOWS)
-                 _fmode = O_TEXT;
- #endif /* __DJGPP__  or _WINDOWS */
  
      /*
       *  Open the RC file for reading.
--- 34,39 ----
***************
*** 532,537 ****
--- 529,537 ----
      /*
       *  Open the file for write.
       */
+ #if defined(__DJGPP__) || defined(_WINDOWS)
+     _fmode = O_TEXT;
+ #endif /* __DJGPP__ or _WINDOWS */
      if ((fp = LYNewTxtFile(rcfile)) == NULL) {
        return FALSE;
      }
***************
*** 632,638 ****
  # logging purposes, and for mailed comments.\n\
  # If you do not want this information given out, set the NO_FROM_HEADER\n\
  # to TRUE in lynx.cfg, or use the -nofrom command line switch.  You also\n\
! # could leave this field blank, but then you won't have if it included in\n\
  # your mailed comments.\n");
      fprintf(fp, "personal_mail_address=%s\n\n",
                (personal_mail_address ? personal_mail_address : ""));
--- 632,638 ----
  # logging purposes, and for mailed comments.\n\
  # If you do not want this information given out, set the NO_FROM_HEADER\n\
  # to TRUE in lynx.cfg, or use the -nofrom command line switch.  You also\n\
! # could leave this field blank, but then you won't have it included in\n\
  # your mailed comments.\n");
      fprintf(fp, "personal_mail_address=%s\n\n",
                (personal_mail_address ? personal_mail_address : ""));


__
Doug Kaufman
Internet: address@hidden (preferred)
          address@hidden

reply via email to

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