Message187453
it seems like file() can't handle unicode file names on FreeBSD. The FS encoding is 'US-ASCII' on Snakebite's FreeBSD box.
> /home/cpython/users/christian.heimes/2.7/Lib/zipfile.py(1078)_extract_member()
-> with self.open(member, pwd=pwd) as source, \
(Pdb) self.open(member, pwd=pwd)
<zipfile.ZipExtFile object at 0x801eb5fd0>
(Pdb) n
> /home/cpython/users/christian.heimes/2.7/Lib/zipfile.py(1079)_extract_member()
-> file(targetpath, "wb") as target:
(Pdb) file(targetpath, "wb")
*** UnicodeEncodeError: 'ascii' codec can't encode characters in position 47-48: ordinal not in range(128)
(Pdb) sys.getfilesystemencoding()
'US-ASCII' |
|
Date |
User |
Action |
Args |
2013-04-20 20:05:23 | christian.heimes | set | recipients:
+ christian.heimes, loewis, georg.brandl, terry.reedy, gregory.p.smith, amaury.forgeotdarc, pitrou, vstinner, larry, schmir, benjamin.peterson, ned.deily, ezio.melotti, Arfrever, r.david.murray, twb, catalin.iacob, python-dev, serhiy.storchaka, koobs, Vhati |
2013-04-20 20:05:23 | christian.heimes | set | messageid: <1366488323.6.0.156694097497.issue17656@psf.upfronthosting.co.za> |
2013-04-20 20:05:23 | christian.heimes | link | issue17656 messages |
2013-04-20 20:05:23 | christian.heimes | create | |
|