Author ronaldoussoren
Recipients Dmitry.Jemerov, ronaldoussoren, vstinner
Date 2013-07-06.14:28:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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/", 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)
Date User Action Args
2013-07-06 14:28:06ronaldoussorensetrecipients: + ronaldoussoren, vstinner, Dmitry.Jemerov
2013-07-06 14:28:06ronaldoussorensetmessageid: <>
2013-07-06 14:28:06ronaldoussorenlinkissue18378 messages
2013-07-06 14:28:06ronaldoussorencreate