[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev Problems of DOS port (dev12) [PATCH]
From: |
Doug Kaufman |
Subject: |
Re: lynx-dev Problems of DOS port (dev12) [PATCH] |
Date: |
Wed, 20 Oct 1999 23:31:23 -0700 (PDT) |
On Wed, 20 Oct 1999, Doug Kaufman wrote:
> On Thu, 21 Oct 1999, Harri Tuominen wrote:
>
> > I downloaded dev12 from Doug Kaufman's site and noticed two problems.
> > ...
> > Another problem is that sending mail doesn't work via print menu. It was
> > OK in dev8. Lynx doesn't call sendmail.bat at all in the dev12 if I try
> > to send mail through print menu.
>
> I haven't changed anything here, but I have never tried to do sendmail
> from the print menu. I'll try to check the code to see how it interfaces
> with the sendmail batch file system for DOS, and what may have changed
> between versions.
This was a problem with integrating the WIN_EX changes. In LYPrint.c,
a DOSPATH ifdef was changed to WIN_EX, leaving the DOS port out in
the cold. A new binary with this change works to email from a print
screen. I'll get a new binary with the fix available for distribution
soon.
Doug
--- lynx2-8-3/src/LYPrint.c Wed Sep 29 04:40:40 1999
+++ lynx2-8-3/src/LYPrint.c.new Wed Oct 20 22:37:00 1999
@@ -770,6 +770,7 @@
if (keypad_mode)
printlist(outfile_fp, FALSE);
+#if defined(WIN_EX) || defined(__DJGPP__)
#if defined(WIN_EX) /* 1998/08/17 (Mon) 16:29:49 */
buffer = NULL;
if (mail_is_blat)
@@ -778,6 +779,11 @@
else
HTSprintf0(&buffer, "%s -t \"%s\" -F %s",
system_mail, user_response, my_temp);
+#endif /* WIN_EX */
+#ifdef __DJGPP__
+ HTSprintf0(&buffer, "%s -t \"%s\" -F %s",
+ system_mail, user_response, my_temp);
+#endif /* __DJGPP__ */
LYCloseTempFP(outfile_fp); /* Close the tmpfile. */
stop_curses();
@@ -789,9 +795,9 @@
SetOutputMode( O_BINARY );
LYRemoveTemp(my_temp); /* Delete the tmpfile. */
-#else /* !WIN_EX */
+#else /* !WIN_EX && !__DJGPP__ */
pclose(outfile_fp);
-#endif
+#endif /* WIN_EX || __DJGPP__ */
#endif /* VMS */
done: /* send_file_to_mail() */
__
Doug Kaufman
Internet: address@hidden