Set general purpose bit 11 for utf-8 encoded filename in a zip file
|Reported by:||Jun Omae||Owned by:||Jun Omae|
Now, Trac generates a zip file while downloading as zip in changeset and all attachments files as zip (0.13+). The filename of the zip file is encoded with utf-8. but "Language encoding flag" in zipinfo.flag_bits is unset.
If the bit is set, 7-zip extracts as unicode in Windows. If unset, it extracts broken filename. (confirmed on Windows XP.)
However, even if set, zip folder in Windows XP and 7 extracts broken filename.
- APPENDIX D in http://www.pkware.com/documents/casestudies/APPNOTE.TXT
- latest zipfile.py at http://hg.python.org/cpython/file/6b9c1adce91e/Lib/zipfile.py#l363