Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Sep 3, 2018

On some FreeBSD, nl_langinfo(CODESET) fails if LC_ALL or LC_CTYPE is
set to an invalid locale name. Replace _Py_SetLocaleFromEnv(LC_CTYPE)
with _Py_SetLocaleFromEnv(LC_ALL) to initialize properly locales.

https://bugs.python.org/issue34485

bpo-34485, bpo-34544: On some FreeBSD, nl_langinfo(CODESET) fails if
LC_ALL or LC_CTYPE is set to an invalid locale name. Replace
_Py_SetLocaleFromEnv(LC_CTYPE) with _Py_SetLocaleFromEnv(LC_ALL) to
initialize properly locales.

Partially revert commit 177d921.
@vstinner vstinner merged commit f01b2a1 into python:master Sep 3, 2018
@vstinner vstinner deleted the lc_all branch September 3, 2018 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants