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 vstinner
Recipients amaury.forgeotdarc, ebfe, ggenellina, gladed, vstinner
Date 2009-01-13.19:25:01
SpamBayes Score 0.09986005
Marked as misclassified No
Message-id <1231874705.21.0.627892901703.issue4871@psf.upfronthosting.co.za>
In-reply-to
Content
I created small archive with a password using zip 2.32 (Ubuntu Gutsy). 
The unicode flag is not set and so ASCII charset is used to encode the 
password. But my password was an unicode password using non-ASCII 
characters and so I get an UnicodeEncodeError ('ascii' codec can't 
encode character u'\xe9' ...). The user (me) doesn't expect such error 
here :-/

If I encode the unicode password to bytes using 
password.encode('utf-8'), it works as expected. So I would prefer to 
just reject unicode for the password. Attached patch implements that.
History
Date User Action Args
2009-01-13 19:25:05vstinnersetrecipients: + vstinner, amaury.forgeotdarc, ggenellina, ebfe, gladed
2009-01-13 19:25:05vstinnersetmessageid: <1231874705.21.0.627892901703.issue4871@psf.upfronthosting.co.za>
2009-01-13 19:25:04vstinnerlinkissue4871 messages
2009-01-13 19:25:03vstinnercreate