Message78107
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. |
|
Date |
User |
Action |
Args |
2008-12-20 14:18:27 | vstinner | set | recipients:
+ vstinner, francescor, skreft |
2008-12-20 14:18:27 | vstinner | set | messageid: <1229782707.45.0.977119726757.issue4621@psf.upfronthosting.co.za> |
2008-12-20 14:18:26 | vstinner | link | issue4621 messages |
2008-12-20 14:18:26 | vstinner | create | |
|