Message345999
The encoding test in ZipFile.open() is highly opinionated and has no purpose beyond itself. Testing for encoding issues should be done outside this library in the user's own code.
Using the 3.7.2 version of ZipFile, this is my proposal:
https://gist.github.com/MorganRamsay/696e89450e0f172c16ac8dfc016eb79f/revisions?diff=unified
Currently, I'm subclassing ZipFile with this patch and I've had no issues with extracting thousands of different ZIP files on Windows. I can't attest to this solution's applicability on other platforms. |
|
Date |
User |
Action |
Args |
2019-06-18 16:41:12 | MorganRamsay | set | recipients:
+ MorganRamsay, georg.brandl, terry.reedy, gregory.p.smith, ronaldoussoren, amaury.forgeotdarc, ncoghlan, NewerCookie, chuck, francismb, berker.peksag, Jim.Jewett, serhiy.storchaka, apolkosnik, Sean Goodwin |
2019-06-18 16:41:11 | MorganRamsay | set | messageid: <1560876071.97.0.937186607706.issue6839@roundup.psfhosted.org> |
2019-06-18 16:41:11 | MorganRamsay | link | issue6839 messages |
2019-06-18 16:41:11 | MorganRamsay | create | |
|