[issue15602] zipfile: wrong encoding charset of member filename

2012-08-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: You are mistaken: there *is* a character set specification for file names in zip files, see http://www.pkware.com/documents/casestudies/APPNOTE.TXT Appendix D says "The ZIP format has historically supported only the original IBM PC character encoding set, c

[issue15602] zipfile: wrong encoding charset of member filename

2012-08-08 Thread monson
New submission from monson: In /cpython/Lib/zipfile.py, there are some codes like if flags & 0x800: # UTF-8 file names extension filename = filename.decode('utf-8') else: # Historical ZIP filename encoding fi