[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev DIRED for DOS [patch]
From: |
Doug Kaufman |
Subject: |
lynx-dev DIRED for DOS [patch] |
Date: |
Tue, 15 Jun 1999 22:32:06 -0700 (PDT) |
I don't know if anyone has had a chance to look at the patch I submitted
to try to get DIRED working for DOS. I found one other problem: DOWNLOAD
wasn't working for localhost files since the filename was not parsed
correctly for DOS. This patch seems to fix it, but I am not sure that
this is the correct way to do it in C. (patch against rel.1)
Doug
--- lynx2-8-2/src/LYDownload.c Sat May 8 10:46:28 1999
+++ lynx2-8-2/src/LYDownload.c.new Mon Jun 14 23:43:22 1999
@@ -91,7 +91,14 @@
#ifdef DIRED_SUPPORT
/* FIXME: use HTLocalName */
if (!strncmp(file, "file://localhost", 16))
+#ifdef __DJGPP__
+ {
+ file += 17;
+ file = HTDOS_name(file);
+ }
+#else
file += 16;
+#endif /* __DJGPP__ */
else if (!strncmp(file, "file:", 5))
file += 5;
HTUnEscape(file);
__
Doug Kaufman
Internet: address@hidden (preferred)
address@hidden
- lynx-dev DIRED for DOS [patch],
Doug Kaufman <=