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 tierlieb
Recipients ezio.melotti, tierlieb, vstinner
Date 2015-11-27.14:54:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448636049.37.0.145831829956.issue25742@psf.upfronthosting.co.za>
In-reply-to
Content
Within locale.py in setlocale your have this piece of code:

    if locale and type(locale) is not type(""):
        # convert to string
        locale = normalize(_build_localename(locale))

That does not work with unicode strings as I found out after wondering quite a bit about the difference was between my tests and my production code...

So either expand the check here to include type(u"") or make _build_localename smarter.
History
Date User Action Args
2015-11-27 14:54:09tierliebsetrecipients: + tierlieb, vstinner, ezio.melotti
2015-11-27 14:54:09tierliebsetmessageid: <1448636049.37.0.145831829956.issue25742@psf.upfronthosting.co.za>
2015-11-27 14:54:09tierlieblinkissue25742 messages
2015-11-27 14:54:09tierliebcreate