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 serhiy.storchaka
Recipients lemburg, loewis, serhiy.storchaka
Date 2013-12-20.11:05:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387537501.53.0.333984460427.issue20033@psf.upfronthosting.co.za>
In-reply-to
Content
When Tools/i18n/makelocalealias.py was ported to Python 3 some things were not fixed.

1. locale.alias is opened as binary file in Python 2, but as text file (with locale encoding) in Python 3. This can cause fail when the script runs in UTF-8 locale because locale.alias contains non-ASCII locales ('bokmål' and 'français', encoded in Latin1).

2. In Python 2 %r formatting always produce ASCII output. In Python 3 %a should be used to produce the same output.

Proposed patch fixes these minor bugs.
History
Date User Action Args
2013-12-20 11:05:01serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, loewis
2013-12-20 11:05:01serhiy.storchakasetmessageid: <1387537501.53.0.333984460427.issue20033@psf.upfronthosting.co.za>
2013-12-20 11:05:01serhiy.storchakalinkissue20033 messages
2013-12-20 11:05:01serhiy.storchakacreate