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 stefanholek
Recipients Arfrever, ezio.melotti, r.david.murray, serhiy.storchaka, stefanholek, vstinner
Date 2012-10-25.11:56:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351166205.18.0.468540901885.issue16310@psf.upfronthosting.co.za>
In-reply-to
Content
What we are trying to do is make distribute work with non-ASCII filenames, and this is one of the things we ran into.

Fact 1: Filenames are bytes, whether you like it or not. Treating them as strings is going to give you more trouble than dragging the bytes along.

Fact 2: Surrogates are Python 3's way of dealing with bytes.

Fact 3: What follows is that surrogates must be supported wherever Python 3 deals with filenames.

Fact 4: This is a *bug* since Python breaks its own rules here (I have removed the enhancement marker). The issue is not what ZIP can do, but what Python 3 *must* do. Creating a potentially non-standard ZIP file is fine, exploding in the user's face is not.
History
Date User Action Args
2012-10-25 11:56:45stefanholeksetrecipients: + stefanholek, vstinner, ezio.melotti, Arfrever, r.david.murray, serhiy.storchaka
2012-10-25 11:56:45stefanholeksetmessageid: <1351166205.18.0.468540901885.issue16310@psf.upfronthosting.co.za>
2012-10-25 11:56:45stefanholeklinkissue16310 messages
2012-10-25 11:56:44stefanholekcreate