Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43945
| Date | 2013-04-19 21:50 -0400 |
|---|---|
| From | Dave Angel <davea@davea.name> |
| Subject | Re: unzipping a zipx file |
| References | <mailman.834.1366394500.3114.python-list@python.org> <5171e036$0$29977$c3e8da3$5496439d@news.astraweb.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.845.1366422671.3114.python-list@python.org> (permalink) |
On 04/19/2013 08:24 PM, Steven D'Aprano wrote:
>
>
<SNIP>
>
> You are missing that zipx is not the same as zip, and Python very likely
> does not support the zipx compression algorithm.
>
> http://kb.winzip.com/kb/entry/7/
>
> My guess is that the zipx header is similar enough to zip that Python can
> retrieve the file names, but it cannot decompress the files.
> Unfortunately, instead of getting a nice error, it is fooled into
> thinking that it decompressed when in fact you just got junk.
>
The zip header includes a 32bit CRC for each file. Do you know whether
the zip module checks that CRC ?
>
> I suggest that you start with a simple example: create a plain text file
> with just a few words. Compress this single file to .zipx, then try to
> decompress it using Python. If it still fails, you will have a simple
> example that you could post here and see if others have more success.
>
>
>
--
DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
unzipping a zipx file "b_erickson1" <brian@dashley.net> - 2013-04-19 17:59 +0000
Re: unzipping a zipx file John Gordon <gordon@panix.com> - 2013-04-19 18:33 +0000
Re: unzipping a zipx file John Gordon <gordon@panix.com> - 2013-04-19 18:56 +0000
Re: unzipping a zipx file Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-20 00:24 +0000
Re: unzipping a zipx file Dave Angel <davea@davea.name> - 2013-04-19 21:50 -0400
csiph-web