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 keeely
Recipients keeely
Date 2018-11-12.14:38:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542033501.3.0.788709270274.issue35218@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.7 allows one to capture from one file a list of ZipInfo objects, and then recreate a new file using those ZipInfo objects.  The same thing appears to be impossible with Python 3 without resorting to monkey-patches because of a line of code in the writestr() code path ignoring the passed in value of ZipInfo and overwritting it with zeros.

See:
https://github.com/python/cpython/blob/master/Lib/zipfile.py#L1567

See also a possible solution at:
https://stackoverflow.com/questions/53254622/zipfile-header-language-encoding-bit-set-differently-between-python2-and-python3
History
Date User Action Args
2018-11-12 14:38:21keeelysetrecipients: + keeely
2018-11-12 14:38:21keeelysetmessageid: <1542033501.3.0.788709270274.issue35218@psf.upfronthosting.co.za>
2018-11-12 14:38:21keeelylinkissue35218 messages
2018-11-12 14:38:21keeelycreate