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 lemburg
Recipients lemburg, loewis, tarek
Date 2008-04-07.19:49:37
SpamBayes Score 0.13115327
Marked as misclassified No
Message-id <1207597778.66.0.180924076032.issue2562@psf.upfronthosting.co.za>
In-reply-to
Content
Agreed, but any change will target the package authors who can easily
upgrade their packages to use Unicode for e.g. names.

If the change were to address distutils users, we'd have to be a lot
more careful.

In any case, if UTF-8 is the defacto standard used in older packages,
then we should probably use that as fallback solution if the ASCII
assumption doesn't work out:

try:
    value = unicode(value)
except UnicodeDecodeError:
    value = unicode(value, 'utf-8')
value = value.encode('utf-8')
History
Date User Action Args
2008-04-07 19:49:38lemburgsetspambayes_score: 0.131153 -> 0.13115327
recipients: + lemburg, loewis, tarek
2008-04-07 19:49:38lemburgsetspambayes_score: 0.131153 -> 0.131153
messageid: <1207597778.66.0.180924076032.issue2562@psf.upfronthosting.co.za>
2008-04-07 19:49:38lemburglinkissue2562 messages
2008-04-07 19:49:37lemburgcreate