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 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 <>
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/
-> with, pwd=pwd) as source, \
(Pdb), pwd=pwd)
<zipfile.ZipExtFile object at 0x801eb5fd0>
(Pdb) n
> /home/cpython/users/christian.heimes/2.7/Lib/
-> 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()
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: <>
2013-04-20 20:05:23christian.heimeslinkissue17656 messages
2013-04-20 20:05:23christian.heimescreate