Author ronaldoussoren
Recipients Dmitry.Jemerov, ronaldoussoren, vstinner
Date 2013-07-06.14:28:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373120886.23.0.0862682966003.issue18378@psf.upfronthosting.co.za>
In-reply-to
Content
The test for darwin is needed because other platforms don't support "UTF-8" as a valid LC_CTYPE name, on a recent linux box:


>>> locale.setlocale(locale.LC_CTYPE, "UTF-8")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/python2.7/lib/python2.7/locale.py", line 539, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

(And just calling setlocale to check if the value is valid is not an option because that changes process-global state)
History
Date User Action Args
2013-07-06 14:28:06ronaldoussorensetrecipients: + ronaldoussoren, vstinner, Dmitry.Jemerov
2013-07-06 14:28:06ronaldoussorensetmessageid: <1373120886.23.0.0862682966003.issue18378@psf.upfronthosting.co.za>
2013-07-06 14:28:06ronaldoussorenlinkissue18378 messages
2013-07-06 14:28:06ronaldoussorencreate