New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeBSD: Fatal Python error: get_locale_encoding: failed to get the locale encoding: nl_langinfo(CODESET) failed #78725
Comments
It seems like my recent work on Python initialization broke Python on FreeBSD. Many test_c_locale_coerce tests now fail with: "Fatal Python error: get_locale_encoding: failed to get the locale encoding: nl_langinfo(CODESET) failed" Example of failed buildbot build: https://buildbot.python.org/all/#/builders/87/builds/1340 It seems like this buildbot started to fail at this build: https://buildbot.python.org/all/#/builders/87/builds/1332 This build has been triggered by this change: commit 177d921
test_c_locale_coerce tests invalid locales like LANG="invalid.ascii". It seems like Python supported such configuration before my changes. My recent work: |
I cannot reproduce the issue on my FreeBSD 11.1 VM. I cannot reproduce the issue on Koobs's "CURRENT-amd64%" buildbot neither :-( Example: CURRENT-amd64% env -i LC_ALL=invalid LC_CTYPE=invalid LANG=invalid PYTHONUTF8=0 PYTHONCOERCECLOCALE=0 ./python -X utf8=0 -c pass (no error) |
My fix didn't work :-( https://buildbot.python.org/all/#/builders/87/builds/1355 ... |
test_c_locale_coerce pass again on AMD64 FreeBSD 10.x Shared 3.x, I close the issue. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: