www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/19/04:21:10

Date: Fri, 19 Aug 94 02:06:31 CDT
From: "Cave Newt" <roe2 AT midway DOT uchicago DOT edu>
To: Zip-Bugs AT wkuvx1 DOT wku DOT edu, as219 AT freenet DOT carleton DOT ca
Subject: Re: Time stamps not restored by DOS Zip386/Unzip386
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

Norm,

> Zip386 is converting local time stamps to GMT but Unzip386 does not
> convert the GMT time stamps back to local time.

djgpp's timezone routines are completely broken.  I have just 
(re)discovered this with regard to unzip's -f/-u options.  You
may be able to work around it by using EST5 instead, but that
will probably still be an hour off.  (Any text after the number
causes djgpp to treat it as GMT, so that's why EST5EDT isn't
working right.)  I have found that TZ=FOO4 (or anything ending 
in "4") is the only way to get correct results.

Note, btw, that this is still broken in djgpp 1.12 (zip 2.0.1
was compiled with 1.11).  I don't know when (or if) it will be
fixed; the djgpp mailing list seems pretty busy with things re-
lated to the extender itself.  You can try compiling with emx+gcc
instead, but I don't know how to set that up on a pure DOS system
(I cross-compile from OS/2).  emx itself is VCPI-only, and there's
a third-party extender called rsx which is DPMI-only, so it's not
as convenient as go32.  The timezone stuff works, however.

> Perhaps, Zip386 should save time stamps in local time (?)

It's trying to do so, but that only works if the library routines
work...

Greg

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019