[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev 2.8.5dev.5 problems on Win95
From: |
Thomas Dickey |
Subject: |
Re: lynx-dev 2.8.5dev.5 problems on Win95 |
Date: |
Sat, 29 Dec 2001 08:11:45 -0500 |
User-agent: |
Mutt/1.2.5i |
On Sat, Dec 29, 2001 at 03:56:30PM +0900, Hataguchi Takeshi wrote:
> On Fri, 28 Dec 2001, Thomas Dickey wrote:
>
> > I have a fix for of this in upcoming dev.6; however I did not see where
> > the repeated backslash comes from. Are you compiling with WIN_EX defined
> > (I'm doing that).
>
> Yes (I used the original makefile for Borland' compiler, that is
> makefile.bcb).
perhaps the problem went away after I made the fix. Here's (not the most
recent - on a different machine) version of that chunk:
--- lynx2.8.5dev.5+/WWW/Library/Implementation/HTFile.c Sun Nov 18 20:52:38 2001
+++ lynx2.8.5dev.5d/WWW/Library/Implementation/HTFile.c Thu Dec 27 18:30:16 2001
@@ -340,6 +340,7 @@
case 'K': /* size in Kilobytes but not for directories */
if (S_ISDIR(data->file_info.st_mode)) {
FormatStr(&buf, start, "");
+ StrAllocCat(buf, " ");
break;
}
/* FALL THROUGH */
@@ -1318,16 +1319,15 @@
CONST char *, entry)
{
char * relative = NULL;
+ char * stripped = NULL;
char * escaped = NULL;
int len;
- if (0 == strcmp(entry,"../")) {
- /*
- ** Undo slash appending for anchor creation.
- */
- StrAllocCopy(escaped,"..");
- } else {
- escaped = HTEscape(entry, URL_XPALPHAS);
+ StrAllocCopy(escaped, entry);
+ LYTrimPathSep(escaped);
+ if (strcmp(escaped, "..") != 0) {
+ stripped = escaped;
+ escaped = HTEscape(stripped, URL_XPALPHAS);
if (((len = strlen(escaped)) > 2) &&
escaped[(len - 3)] == '%' &&
escaped[(len - 2)] == '2' &&
@@ -1353,6 +1353,7 @@
HTStartAnchor(target, NULL, relative);
FREE(relative);
}
+ FREE(stripped);
FREE(escaped);
}
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden