This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients X-Istence, serhiy.storchaka
Date 2016-11-19.09:14:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479546863.16.0.815796771323.issue28719@psf.upfronthosting.co.za>
In-reply-to
Content
If the output file is not seekable, zipfile sets bit 3 in file header flags and writes 12 or 20 (if ZIP64 extension is used) additional bytes after the compressed data. These bytes contain the CRC, compressed and uncompressed sizes. Corresponding fields in local file header are set to zero.

In case of writestr() this can be considered as a regression, since the CRC and sizes can be calculated before writing compressed data and saved in local file header.

But it would be not easy to fix this.
History
Date User Action Args
2016-11-19 09:14:23serhiy.storchakasetrecipients: + serhiy.storchaka, X-Istence
2016-11-19 09:14:23serhiy.storchakasetmessageid: <1479546863.16.0.815796771323.issue28719@psf.upfronthosting.co.za>
2016-11-19 09:14:23serhiy.storchakalinkissue28719 messages
2016-11-19 09:14:22serhiy.storchakacreate