delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/09/21/08:30:47

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: rafael AT gauzon DOT com (rafael garcia)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: calling unzip32 from djgpp
Date: 21 Sep 2004 00:31:50 -0700
Organization: http://groups.google.com
Lines: 33
Message-ID: <42da7100.0409202331.442efd6d@posting.google.com>
References: <42da7100 DOT 0409200153 DOT 6cb9560f AT posting DOT google DOT com> <414ECC5B DOT 7000802 AT acm DOT org> <42da7100 DOT 0409201030 DOT 753ea573 AT posting DOT google DOT com> <414F23A8 DOT 8060709 AT acm DOT org>
NNTP-Posting-Host: 80.58.14.170
X-Trace: posting.google.com 1095751911 7712 127.0.0.1 (21 Sep 2004 07:31:51 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Tue, 21 Sep 2004 07:31:51 +0000 (UTC)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Cesar Rabak <crabak AT acm DOT org> wrote in message news:<414F23A8 DOT 8060709 AT acm DOT org>...
> > The problem is when you include the ".zip" file extension, unzip32.exe
> > changes its return code to 1 !!!
> > 
> > I don't know if this is a bug or a feature but it has bad colour for
> > me.
> > 
> 
>  From the unzip man page:
> 
> DIAGNOSTICS
>         The  exit  status  (or  error level) approximates the exit
>         codes defined by PKWARE and takes on the following values,
>         except under VMS:
> 
>                0      normal; no errors or warnings detected.
> 
>                1      one or more warning errors were encountered,
>                       but processing completed  successfully  any-
>                       way.   This  includes  zipfiles where one or
>                       more files was skipped  due  to  unsupported
>                       compression  method  or  encryption  with an
>                       unknown password.

I have to admit I have not read unzip32 full documentation, but I
don't think this fragment put anything clear. PKWARE PKUNZIP does not
return 1 when you give extension, so that "approximation in the exit
codes" is not very good in this case. Anyway, I cannot imagine why it
should produce a "warning error" to include complete path of the
archive. And I think if you are to going to return an error code, you
should send the corresponding text message to the console.

Thank you

- Raw text -


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