lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev Problem with milcap reading


From: Darren Braecklein
Subject: lynx-dev Problem with milcap reading
Date: Mon, 29 May 2000 21:32:45 +0000
User-agent: Mutt/1.2i


Using lynx 2.8.4dev2 for the first time and i noticed this bug.

My mailcap reads:
image/jpeg; seejpeg -F G640x480x256 %s
image/gif; seejpeg -F G640x480x256 %s
text/html; lynx -child -force_html %s
text/richtext; richtext %s; copiousoutput

When starting Lynx with $ ./lynx -trace
As you can see from the tracelog it spawns another lynx with the options
from the mailcap. (copy of the tracelog is at the end of this message)

Now i've traced the error using xxgdb but not having the programming know-how
i don't know how to fix it.
In ProcessMailcapEntry of HTInit.c. At this point

--> if (!strncasecomp(t, "text/html", 9) ||
        !strncasecomp(t, "text/plain", 10)) {
        --s;
        *s = ';';
        CTRACE((tfp, "ProcessMailcapEntry: Ignoring mailcap entry: %s\n",
                    rawentry));
        FREE(rawentry);
        return(0);
    }

The variables stand at:
5: s = 0x816cb42 " lynx -child -force_html %s"
4: t = 0x0
3: fp = (FILE *) 0x816ca20
2: LineBuf = 0x0
1: rawentry = 0x816cb38 "text/html"

So the test that checks for text/html fails.
-- 
________________N__L_I_V_E_________________________________________
|  mailto://address@hidden  | Lynx Browser :     |
|    http://www.braecklein.freeserve.co.uk   |   lynx.browser.org |
-------------------------------------------------------------------

Linux braecklein 2.2.14 #4 Thu Apr 6 23:20:06 GMT 2000 i486 unknown

~/Lynx.trace

                Lynx Trace Log (2.8.4dev.2)

lynx_setup_colors
lynx_map_color(0)
lynx_map_color(1)
lynx_map_color(2)
lynx_map_color(3)
lynx_map_color(4)
lynx_map_color(5)
lynx_map_color(6)
lynx_map_color(7)
LYNX_SIG_FILE set to '/root/live/.lynxsig'
HTMLDTD: Copying DTD element info of size 5236, 119 * 44
Loading cfg file '/usr/local/lib/lynx.cfg'.
HTParse: aName:`http://lynx.browser.org/'
   relatedName:`'
HTParse: (ABS)
HTParse:      result:http://lynx.browser.org/
ProcessMailcapFile: Loading file '/usr/local/lib/mosaic/mailcap'.
ProcessMailcapFile: Could not open '/usr/local/lib/mosaic/mailcap'.
ProcessMailcapFile: Loading file '/root/live/.mailcap'.
ProcessMailcapEntry Setting up conversion image/jpeg : seejpeg -F G640x480x256 
%s
ProcessMailcapEntry Setting up conversion image/gif : seejpeg -F G640x480x256 %s
ProcessMailcapEntry Setting up conversion text/html : lynx -child -force_html %s
ProcessMailcapEntry Setting up conversion text/richtext : richtext %s
HTFormat: Looking up presentation for text/plain to www/present
FindPresentation: found exact match: text/plain
HTFormat: Looking up presentation for text/html to www/present
FindPresentation: found exact match: text/html
HTFileInit: Loading default (HTInit) extension maps.
HTLoadExtensionsConfigFile: Loading file '/usr/local/lib/mosaic/mime.types'.
HTLoadExtensionsConfigFile: Could not open '/usr/local/lib/mosaic/mime.types'.
HTLoadExtensionsConfigFile: Loading file '/root/live/.mime.types'.
Window size changed from (24,80) to (25,80)
lynx_init_colors
start_curses: done.
HTParse: aName:`http://lynx.browser.org/'
   relatedName:`'
HTParse: (ABS)
HTParse:      result:http://lynx.browser.org/
LYMain: User in Local domain
Entering mainloop, startfile=http://lynx.browser.org/
getfile: getting http://lynx.browser.org/

HTParse: aName:`http://lynx.browser.org/'
   relatedName:`'
HTParse:      result:lynx.browser.org

HTParse: aName:`http://lynx.browser.org/'
   relatedName:`'
HTParse:      result:
Entered HTAnchor_findAddress
New anchor 0x8177b18 has hash 57 and address `http://lynx.browser.org/'
HTAccess: loading document http://lynx.browser.org/
HTParse: aName:`http://lynx.browser.org/'
   relatedName:`file:'
HTParse:      result:http
HTParse: aName:`http://lynx.browser.org/'
   relatedName:`'
HTParse:      result:lynx.browser.org
HTParse: aName:`http://lynx.browser.org/'
   relatedName:`'
HTParse:      result:http
proxy server found: http://localhost:8080/
HTParse: aName:`http://localhost:8080/http://lynx.browser.org/'
   relatedName:`http:'
HTParse:      result:http
HTParse: aName:`http://localhost:8080/http://lynx.browser.org/'
   relatedName:`'
HTParse:      result:localhost:8080
Looking up localhost:8080
HTParseInet: parsing `localhost:8080'.
LYGetHostByName: parsing `localhost'.
End of LYGetHostByName: 0x400dc4a8 { h_name = 0x400dc548 "localhost",
         h_aliases = 0x400dc4bc { 0x0 },
         h_addrtype = 2, h_length = 4,
         h_addr_list = 0x400dc388 { 0x400dbb84 "127.0.0.1", 0x0 } }
LYGetHostByName: Resolved name to a hostent.
HTParseInet: Parsed address as port 8080, IP address 127.0.0.1
Making HTTP connection to localhost:8080
TCP: Error 115 in `SOCKET_ERRNO' after call to this socket's first connect() 
failed.
        Operation now in progress
TCP: Error 115 in `SOCKET_ERRNO' after call to this socket's first select() 
failed.
        Operation now in progress
HTParse: aName:`http://localhost:8080/http://lynx.browser.org/'
   relatedName:`'
HTParse: (ABS)
HTParse:      result:/http://lynx.browser.org/
HTParse: aName:`http://lynx.browser.org/'
   relatedName:`'
HTParse:      result:lynx.browser.org
HTParse: aName:`http://localhost:8080/http://lynx.browser.org/'
   relatedName:`'
HTParse: (ABS)
HTParse:      result:/http://lynx.browser.org/
HTParse: aName:`http://localhost:8080/http://lynx.browser.org/'
   relatedName:`'
HTParse: (ABS)
HTParse:      result:http://lynx.browser.org/
HTParse: aName:`http://localhost:8080/http://lynx.browser.org/'
   relatedName:`'
HTParse:      result:localhost:8080
HTParse: aName:`http://lynx.browser.org/'
   relatedName:`'
HTParse:      result:lynx.browser.org
HTParse: aName:`http://lynx.browser.org/'
   relatedName:`'
HTParse: (ABS)
HTParse:      result:/
Composing Authorization for lynx.browser.org:80//
HTAASetup_lookup: No template matched `/' (so probably not protected)
HTTP: Not sending authorization (yet).
LYCookie: Searching for 'lynx.browser.org:80', '/'.
Composing Proxy Authorization for localhost:8080/http://lynx.browser.org/
HTAASetup_lookup: No template matched `http://lynx.browser.org/' (so probably 
not protected)
HTTP: Not sending proxy authorization (yet).
Writing:
GET http://lynx.browser.org/ HTTP/1.0
Host: lynx.browser.org
Accept: text/html, text/plain, image/jpeg, image/gif, text/richtext, text/html, 
text/sgml, */*;q=0.01
Accept-Encoding: gzip, compress
Accept-Language: en
Accept-Charset: iso-8859-15, us-ascii;q=0.01
User-Agent: Lynx/2.8.4dev.2 libwww-FM/2.14

----------------------------------
Sending HTTP request.
HTTP: WRITE delivered OK
HTTP request sent; waiting for response.
HTTP: Trying to read 1535
HTTP: Read 1535
HTTP: Rx: HTTP/1.0 200 OK 
HTTP: Scanned 2 fields from line_buffer
--- Talking HTTP1.
HTTP/1.0 200 OK
HTFormat: Constructing stream stack for www/mime to www/present
HTFormat: Looking up presentation for www/mime to www/present
StreamStack: found weak wildcard match: www/present
FindPresentation: found exact match: www/mime
StreamStack: found exact match: www/mime
StreamStack: Returning "MIMEParser"
HTMIME:  Server: Apache/1.3.9 (Unix) PHP/3.0.12
Content-Type: text/html
Via: 1.1 www-cache.pol.co.uk (NetCache 4.1R1D6), 1.1 www-cache.pol.co.uk 
(NetCache 4.1R1D6)
Date: Sun, 28 May 2000 16:18:55 GMT
Connection: close
Proxy-Connection: close
Content-Length: 2830


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">
<html>
<head>
<!-- OWNER_NAME="Lynx Developers" -->
<META name=description content="Index of Informationresources about the Lynx 
browser for the World Wide Web">
<META name=keywords content="Lynx, browser, www, text-only,text-mostly, 
text-browsers, index, GNU, VMS, Un*x, Linux">
<LINK rev=made href="mailto:address@hidden";>
<LINK rev=owns href="mailto:address@hidden";>
<title>Lynx Information</title>
<BASE href="http://lynx.browser.org/";>
</head>
<!-- body BACKGROUND="http://www.slcc.edu/lynx/Backgrounds/marb18.jpg"; -->
<!-- body BACKGROUND="http://144.35.10.96/lynx/Backgrounds/lynx_backgnd.jpg";
-->
<body>
<!-- img align=right src="/lynxfriendly.gif" alt="[Lynx Friendly]" -->

<h1 align=center> Lynx </h1> 



<p align=left><STRONG>Lynx</STRONG> is a text browser for the World Wide Web.
&nbsp;&nbsp;
<A HREF="http://lynx.isc.org/release/";><strong>&lt;</strong>&nbsp;Lynx 
2.8.3<strong>&gt;</strong></a>
runs on Un*x, VMS, Windows 95/98/NT
but <STRONG>not</STRONG> 3.1 or 3.11,
on DOS (386 or higher) and OS/2 EMX.&nbsp;&nbsp;The
<a href="http://lynx.isc.org/current/";><strong>&lt;</strong>
&nbsp;current developmental version<strong>&gt;</strong></a> is also available 
for
testing.&nbsp;&nbsp
HTMIME: Got 'S' at beginning of line, state now S
HTMIME: Was S, found E, state now SE'
HTMIME: Was SE, found R, checking for 'ver'
HTMIME: PICKED UP Server: 'Apache/1.3.9 (Unix) PHP/3.0.12'
HTMIME: Got 'C' at beginning of line, state now C
HTMIME: Was C, found O, state now CO'
HTMIME: Was CO, found N, state now CON
HTMIME: Was CON, found T, checking for 'ent-'
HTMIME: in case CONTENT_
HTMIME: Was CONTENT_, found T, state now CONTENT_T
HTMIME: in case CONTENT_T
HTMIME: Was CONTENT_T, found Y, checking for 'pe:'
HTMIME: PICKED UP Content-Type: 'text/html'
HTMIME: Got 'V' at beginning of line, state now V
HTMIME: Was V, found I, checking for 'a:'
HTMIME: PICKED UP Via: '1.1 www-cache.pol.co.uk (NetCache 4.1R1D6), 1.1 
www-cache.pol.co.uk (NetCache 4.1R1D6)'
HTMIME: Got 'D' at beginning of line, checking for 'ate:'
HTMIME: PICKED UP Date: 'Sun, 28 May 2000 16:18:55 GMT'
HTMIME: Got 'C' at beginning of line, state now C
HTMIME: Was C, found O, state now CO'
HTMIME: Was CO, found N, state now CON
HTMIME: Was CON, found N, checking for 'ection:'
HTMIME: PICKED UP Connection: 'close'
HTMIME: Got 'P' at beginning of line, state now P
HTMIME: Was P, found R, state now PR'
HTMIME: Was PR, found O, checking for 'xy-authenticate'
HTMIME: Bad character `C' found where `authenticate:' expected
HTMIME: Got 'C' at beginning of line, state now C
HTMIME: Was C, found O, state now CO'
HTMIME: Was CO, found N, state now CON
HTMIME: Was CON, found T, checking for 'ent-'
HTMIME: in case CONTENT_
HTMIME: Was CONTENT_, found L, state now CONTENT_L
HTMIME: in case CONTENT_L
HTMIME: Was CONTENT_L, found E, checking for 'ngth:'
HTMIME: PICKED UP Content-Length: '2830'
        Converted to integer: '2830'
HTMIME: MIME Content-Type is 'text/html', converting to 'www/present'
HTFormat: Constructing stream stack for text/html to www/present
HTFormat: Looking up presentation for text/html to www/present
FindPresentation: found exact match: text/html
StreamStack: found exact match: text/html
LYOpenTemp(,.html,wb)
lynx_temp_space is not our directory /tmp/ owner 0 mode 777
made subdirectory /tmp/a12681/
-> '/tmp/a12681/L12681-2526TMP.html'
... LYOpenTemp(/tmp/a12681/L12681-2526TMP.html)
PARAM-ADD:lynx -child -force_html /tmp/a12681/L12681-2526TMP.html
PARAM-END:lynx -child -force_html /tmp/a12681/L12681-2526TMP.html
PARAM-ADD:/bin/rm -f /tmp/a12681/L12681-2526TMP.html
PARAM-END:/bin/rm -f /tmp/a12681/L12681-2526TMP.html
StreamStack: Returning "FileWriter"
Data transfer complete
LYCloseTempFP
...LYCloseTempFP(/tmp/a12681/L12681-2526TMP.html)
lynx -child -force_html /tmp/a12681/L12681-2526TMP.html
stop_curses: done.
LYSystem(lynx -child -force_html /tmp/a12681/L12681-2526TMP.html)
start_curses: done.
HTAccess:  status=200
HTAccess: `http://lynx.browser.org/' has been accessed.
stop_curses: done.
LYRemoveTemp(/tmp/a12681/L12681-2526TMP.html)
...LYRemoveTemp done(0)
LYCleanupTemp removing /tmp/a12681


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

reply via email to

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