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 vstinner
Recipients francescor, skreft, vstinner
Date 2008-12-20.14:18:26
SpamBayes Score 0.00017927539
Marked as misclassified No
Message-id <1229782707.45.0.977119726757.issue4621@psf.upfronthosting.co.za>
In-reply-to
Content
Test on Ubuntu Gutsy (utf8 file system) with zip 2.32:
$ mkdir x
$ touch x/hé
$ zip -r x.zip x
  adding: x/ (stored 0%)
  adding: x/hé (stored 0%)

$ python # 3.0 trunk
>>> import zipfile
>>> testzip = zipfile.ZipFile('x.zip')
>>> testzip.infolist()[1].filename
'x/hé'
>>> print(ascii(testzip.infolist()[1].filename))
'x/h\u251c\u2310'

Using my own file parse (hachoir-wx), I can see that flags=0 and 
filename=bytes {78 2f 68 c3 a9} ("x/hé" in UTF-8).

You can try x.zip: I attached the file.
History
Date User Action Args
2008-12-20 14:18:27vstinnersetrecipients: + vstinner, francescor, skreft
2008-12-20 14:18:27vstinnersetmessageid: <1229782707.45.0.977119726757.issue4621@psf.upfronthosting.co.za>
2008-12-20 14:18:26vstinnerlinkissue4621 messages
2008-12-20 14:18:26vstinnercreate