lynx-dev
[Top][All Lists]
Advanced

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

DOS weird thing (was: Re: lynx-dev lynx2.8.2dev.12.gz)


From: Leonid Pauzner
Subject: DOS weird thing (was: Re: lynx-dev lynx2.8.2dev.12.gz)
Date: Wed, 30 Dec 1998 15:56:46 +0300 (MSK)

Klaus Weide wrote:

> While you are reviewing the code for DOS (etc.), please have a look
> at this, near the beginning of is_url (LYUtils.c):

> #if defined (DOSPATH) || defined (__EMX__) /* sorry! */
>     if (strncmp(cp, "file:///", 8) && strlen(cp) == 19 &&
>         cp[strlen(cp)-1] == ':')
>         StrAllocCat(cp,"/");
> #endif

> That looks very very wrong, and is more likely to create memory
> corruption than anything useful.  I suspect that nobody knows any
> more what it was supposed to do, and that's why it is still there.


I was trying to remove this code, it apperently leads to weird thing,
lynx file://localhost/c:
returns a page with a link to file://localhost/c:/.. near the top,
which results in file://localhost/../ if I try follow the link before.

Seems conversion c: -> c:/ done not in all plases where neccesary,
and a .. link appears from root by some misterious reason.
Will check it later.
Quoted from trace file:


HTParse: aName:file://localhost/c:   relatedName:
1
HTParse: result:/c:
Node `file://localhost/c:' means path `/c:'
HTDOS_name changed `/c:' to `c:\'
c:\ is a directory
HTParse: aName:file://localhost/c:   relatedName:
1
HTParse: result:/c:
HTParse: aName:file://localhost/c:   relatedName:
1
HTParse: result:/c:
UCSetTransParams: from cp866(17) to cp866(17)
UCSetTransParams: from cp866(17) to cp866(17)
GridText: start HText_new
GridText: Change to style Normal
GridText: split_line(0 [now:0]) called
me->tag_charset: 0 -> 23 (me->UCLYhndl: 23, tag_charset: -1)
HTML:begin_element[0]: adding style to stack - Normal
me->tag_charset: 23 -> 23 (me->UCLYhndl: 23, tag_charset: -1)
HTML:begin_element[1]: adding style to stack - Normal
HTML:end_element[1]: Popped style off stack - Normal
HTML:end_element[0]: Popped style off stack - Normal
me->tag_charset: 23 -> 23 (me->UCLYhndl: 23, tag_charset: -1)
GridText: Change to style Heading1
HTML:begin_element[0]: adding style to stack - Heading1
HTML:end_element[0]: Popped style off stack - Normal
GridText: Change to style Normal
GridText: split_line(0 [now:2]) called
GridText: split_line(0 [now:0]) called
me->tag_charset: 23 -> 23 (me->UCLYhndl: 23, tag_charset: -1)
new Anchor 1f4438 named `' is child of 1ef810
Entered HTAnchor_findChildAndLink
HTParse: aName:file://localhost/c:/..   relatedName:file://localhost/c:
1
HTParse: result:file://localhost/c:/..
HTParse: aName:file://localhost/c:/..   relatedName:
HTParse: result:
Entered HTAnchor_findAddress
New anchor 1f3a30 has hash 44 and address `file://localhost/c:/..'
Linking anchor 1f4438 to anchor 1f3a30




reply via email to

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