[issue36061] zipfile does not handle arcnames with non-ascii characters on Windows

2019-02-21 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36061] zipfile does not handle arcnames with non-ascii characters on Windows

2019-02-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can not just add .decode('cp437') to arcname. 1. This will fail if the ZIP archive contains file names encoded with UTF-8. They are already unicode and contains non-ascii characters. For decode() they will be implicit encoded to str, that will fail.

[issue36061] zipfile does not handle arcnames with non-ascii characters on Windows

2019-02-20 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +11991 stage: -> patch review ___ Python tracker ___ ___

[issue36061] zipfile does not handle arcnames with non-ascii characters on Windows

2019-02-20 Thread Shane Lee
New submission from Shane Lee : Python 2.7.15 (probably affects newer versions as well) Given an archive with any number of files inside that have non-ascii characters in their filename `zipfile` will crash when extracting them to the file system. ``` Traceback (most recent call last):