| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| From: | Cesar Rabak <crabak AT acm DOT org> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: calling unzip32 from djgpp |
| Date: | Tue, 21 Sep 2004 15:24:40 -0300 |
| Lines: | 56 |
| Message-ID: | <415071E8.1000502@acm.org> |
| 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> <42da7100 DOT 0409202331 DOT 442efd6d AT posting DOT google DOT com> |
| Mime-Version: | 1.0 |
| X-Trace: | news.uni-berlin.de AxwnrQ1Y9t86QwLM8ZGIUAG0bMORV9IpmuBB5RoK/HplNXm40= |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.0.2) Gecko/20030208 Netscape/7.02 |
| X-Accept-Language: | pt-br, pt |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
rafael garcia escreveu:
> 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
[snippd]
> 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.
>
I'm afraid you're hasting in conclusion the reason your getting the
return code of 1 is due the fact you'd put the extension on the name. . .
Perhaps you have to investigate a little more. . . Get a look:
D:\users\csrabak\Work>redir -x unzip32 -t Seleclin
Archive: Seleclin.zip
testing: seleclin.c OK
testing: testwin.c OK
testing: testwin.exe OK
testing: test.c OK
testing: seleclin.txt OK
testing: seleclin.h OK
No errors detected in compressed data of Seleclin.zip.
Exit code: 0
D:\users\csrabak\Work>redir -x unzip32 -t Seleclin.zip
Archive: Seleclin.zip
testing: seleclin.c OK
testing: testwin.c OK
testing: testwin.exe OK
testing: test.c OK
testing: seleclin.txt OK
testing: seleclin.h OK
No errors detected in compressed data of Seleclin.zip.
Exit code: 0
What do you get in your box?
--
Cesar Rabak
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |