[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev LYUtils bug patch and update on dired for DOS
From: |
Doug Kaufman |
Subject: |
lynx-dev LYUtils bug patch and update on dired for DOS |
Date: |
Mon, 3 May 1999 07:32:34 -0700 (PDT) |
I've been working on dired for DOS, using Igor Poretsky's patch as a
starting point. I now have rename, move, gzip, gunzip, zip, and unzip
working. I should be submitting a patch within a few days, after I get
to clean up some details. I did come across a problem which seems to
be a bug in the LYPathLeaf function, which under DOS returns a value
of "\filename" rather than "filename". It seems as if it should return
the latter.
The biggest problem so far is with lynx_edit_mode. It looks like it
should be made TRUE in HTAccess.c when dired is appropriate, but it
doesn't seem work under DOS. As a temporary workaround, I declared
it TRUE whenever invoking dired, but this will leave instances where
attempts at file manipulation will fail. Any ideas about this would be
appreciated.
Doug
--- lynx2-8-2/src/LYUtils.c Fri Apr 23 07:56:36 1999
+++ lynx2-8-2/src/LYUtils.c.new Sun May 2 00:19:56 1999
@@ -4931,7 +4931,7 @@
int n;
for (leaf = 0, n = strlen(pathname)-1; n >= 0; n--) {
if (strchr("\\/:", pathname[n]) != 0) {
- leaf = pathname + n;
+ leaf = pathname + n + 1;
break;
}
}
__
Doug Kaufman
Internet: address@hidden (preferred)
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev LYUtils bug patch and update on dired for DOS,
Doug Kaufman <=