Author christian.heimes
Recipients Arfrever, Vhati, amaury.forgeotdarc, benjamin.peterson, catalin.iacob, christian.heimes, ezio.melotti, georg.brandl, gregory.p.smith, koobs, larry, loewis, ned.deily, pitrou, python-dev, r.david.murray, schmir, serhiy.storchaka, terry.reedy, twb, vstinner
Date 2013-04-20.20:05:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366488323.6.0.156694097497.issue17656@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2013-04-20 20:05:23christian.heimessetrecipients: + 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:23christian.heimessetmessageid: <1366488323.6.0.156694097497.issue17656@psf.upfronthosting.co.za>
2013-04-20 20:05:23christian.heimeslinkissue17656 messages
2013-04-20 20:05:23christian.heimescreate