The new "change directory" code has at least two problems on the
DJGPP port. It doesn't take into account that DOS absolute pathnames
don't start with a "/". It causes a crash and traceback (equivalent
to core dump) when it frees "tmp". I don't understand exactly why
freeing "tmp" causes the crash, but commenting it out seems to fix the
problem. Someone else will have to decide if the code is correct for
other platforms. This was tested with 2.8.4dev.4, with DJGPP 2.03, gcc
2.95.2, PDCurses 2.4, compiled with libintl.a and libwmemu.a. Platform
is DOS 6.22 (Windows not running).
Doug
--- lynx2-8-4/src/LYMainLoop.c Fri Jun 23 08:15:08 2000
+++ lynx2-8-4/src/LYMainLoop.c.new Sat Jul 15 19:44:40 2000
@@ -5102,10 +5102,15 @@
tmp = wwwName(buf2);
StrAllocCopy(addr, "file://localhost");
+#ifdef __DJGPP__
+ StrAllocCat(addr, "/");
+ StrAllocCat(addr, tmp);
+#else
StrAllocCat(addr, tmp);
if (tmp != buf2)
/*since wwwName is nop on unix and allocates something on VMS and DOS*/
FREE(tmp);
+#endif /* __DJGPP__ */
newdoc.address = addr;
newdoc.isHEAD = FALSE;
__
Doug Kaufman
Internet: [EMAIL PROTECTED]
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]