lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev DOS patch for lynx2.8.5dev.2


From: Doug Kaufman
Subject: lynx-dev DOS patch for lynx2.8.5dev.2
Date: Mon, 20 Aug 2001 20:25:19 -0700 (PDT)

When I submitted the patch to allow DJGPP to use the configure script,
I mentioned a few problems still "TO DO". This should fix two of them.
I don't think that the change that isn't ifdef'd __DJGPP__ will have
adverse effects on other DOSPATH platforms, but if it does, we can
just make that change for DJGPP alone. The special form /dev/env/ now
works also, allowing environment variables to be coded in as apparent
fixed URLs. Some of the indenting in the patch looks funny. I just let
vim use its default.

  Things still needing fixing for DOS:
  + support for both forms of file addressing, [a-zA-Z]:[/\\] and
    /dev/[a-zA-z]/.

* Should be fixed with this patch

  + support for gzipped help files.  This works with long file names in a DOS
    box under Windows, but not in plain DOS, which doesn't allow double
    extensions.

* Still to be fixed, if possible

  + better handling of local files in root directory.  "file:///c:/" takes a
    long time to work, but "file:///c:/." works fine.  I haven't really looked
    to see why.

* Should be fixed with this patch

  + no ability to break out of hung nameserver lookups or http requests without
    closing lynx with SIGINT.  This is the biggest complaint I get by email.

* Still to be fixed, if possible
                            Doug

--- lynx2.8.5dev.2/lynx2-8-5/WWW/Library/Implementation/HTDOS.c.ori     Mon Mar 
27 03:14:00 2000
+++ lynx2.8.5dev.2/lynx2-8-5/WWW/Library/Implementation/HTDOS.c Mon Aug 20 
20:02:02 2001
@@ -67,8 +67,10 @@
     if (wwwname_len > 1)
        cp_url--;       /* point last char */
 
-    if (wwwname_len > 3 && *cp_url == '/')
+    if (wwwname_len > 3 && *cp_url == '/'){
+            cp_url++;
        *cp_url = '\0';
+    }
 
 #ifdef NOTUSED
     if(*cp_url == ':') {
@@ -99,6 +101,16 @@
     int joe;
 
     copy_plus(&result, wwwname);
+#ifdef __DJGPP__
+    if (result[0] == '/' 
+                    && result[1] == 'd' 
+                    && result[2] == 'e' 
+                    && result[3] == 'v' 
+                    && result[4] == '/' 
+                    && isalpha(result[5])) {
+            return(result);
+    }
+#endif /* __DJGPP__ */
 
     for (joe = 0; result[joe] != '\0'; joe++)  {
        if (result[joe] == '/') {
--- lynx2.8.5dev.2/lynx2-8-5/src/LYUtils.c.ori  Mon Jun 11 01:04:20 2001
+++ lynx2.8.5dev.2/lynx2-8-5/src/LYUtils.c      Mon Aug 20 18:55:08 2001
@@ -7360,7 +7360,7 @@
        path[len-1] = 0;
 }
 
-#ifdef DOSPATH
+#if defined(DOSPATH) && !defined(__DJGPP__)
 #define PATHSEP_STR "\\"
 #else
 #define PATHSEP_STR "/"


__ 
Doug Kaufman
Internet: address@hidden


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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