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 loewis
Recipients connexion2000, loewis
Date 2010-12-22.20:07:48
SpamBayes Score 0.013120336
Marked as misclassified No
Message-id <1293048470.22.0.0487104378431.issue10757@psf.upfronthosting.co.za>
In-reply-to
Content
This is not a bug. Your code that produces "very nasty filename" is the right one - the file name is actually the one you asked for. The second code is also behaving correctly: filename already *is* a bytestring, calling .encode for it is meaningless.
History
Date User Action Args
2010-12-22 20:07:50loewissetrecipients: + loewis, connexion2000
2010-12-22 20:07:50loewissetmessageid: <1293048470.22.0.0487104378431.issue10757@psf.upfronthosting.co.za>
2010-12-22 20:07:48loewislinkissue10757 messages
2010-12-22 20:07:48loewiscreate