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 ncoghlan
Recipients bapt, ezio.melotti, koobs, ncoghlan, ned.deily, vstinner
Date 2017-06-15.10:29:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497522566.77.0.959538770124.issue30647@psf.upfronthosting.co.za>
In-reply-to
Content
Note that the coercion logic includes a runtime check to see if 'setlocale(LC_CTYPE, "<locale_name>")' succeeds. That's how we skip over the non-existent C.UTF-8 and C.utf8 to get to "LC_CTYPE=UTF-8" on Mac OS X and FreeBSD.

That *appears* to work (and really does work on Mac OS X as far as CPython's test suite is concerned), but on FreeBSD we subsequently get the CODESET failure when we try to call `nl_langinfo` later in the interpreter startup process.

Victor's suggestion, which seems reasonable to me, is that we could also add the `nl_langinfo` call in the coercion logic, so that we never implicitly configure a locale setting that breaks nl_langinfo.

That way, instead of the interpreter failing to start, we'd just skip the locale coercion logic in that case (and update the test suite's expectations accordingly).
History
Date User Action Args
2017-06-15 10:29:26ncoghlansetrecipients: + ncoghlan, vstinner, ned.deily, ezio.melotti, koobs, bapt
2017-06-15 10:29:26ncoghlansetmessageid: <1497522566.77.0.959538770124.issue30647@psf.upfronthosting.co.za>
2017-06-15 10:29:26ncoghlanlinkissue30647 messages
2017-06-15 10:29:26ncoghlancreate