lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV Re: Lynx/386 and problem with compressed files..


From: Klaus Weide
Subject: Re: LYNX-DEV Re: Lynx/386 and problem with compressed files..
Date: Wed, 14 May 1997 18:08:53 -0500 (CDT)

On Wed, 14 May 1997, Wayne Buttles wrote:

> I am not entirely sure what to do here.  When a compressed file file is
> encountered (gzip, compress...), lynx makes a temp file with two
> extentions like Lxxxxxxx.txt.gz and then expects the resulting file to be
> Lxxxxxxx.txt.  I am not sure how to modify this for the 386 port which
> can't handle it.  Anyone have any thoughts?

Make it create Lxxxxxxx.gz instead of Lxxxxxxx.txt.gz or Lxxxxxxx.html.gz,
then run gzip, that should create Lxxxxxxx (? does it ?), then rename
Lxxxxxxx -> Lxxxxxxx.txt (or .html etc.). 

Basically, don't put ".txt" or ".html" or ".bin" into the filename where
it's constructed (in HTCompressed), but defer that to HTFWriter_free after
decompression has succeeded.

That's just what I would try, I think it would work.

Those lines which construct the filename in HTCompressed look a bit hairy.
You may want to compare how it looks with the mkstemp patch in
   <URL:http://sol.slcc.edu/lynx/klaus/temp/>
which uses a replacement for tempname() instead which can return temp
files already with the desired suffix.  (Note that diff is only against
2.7.1.  It is probably not much useful for your purpose anyway...)

  Klaus

;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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