[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English
Ronald Oussoren
report at bugs.python.org
Sat Jul 13 06:55:27 EDT 2019
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
LC_CTYPE=UTF-8 is a valid configuration on macOS, and is in the default environment when you install a fresh system. This includes the beta's for macOS 10.15 and is therefore unlikely to change anytime soon.
Interestingly enough I get this error even when I unset the relevant environment variables. For some reason LC_CTYPE is reset when I start the interpreter, even if it is set to something else. This means the usual way of working around this problem no longer works.
I'll create a pull request with an up-to-date version of my latest patch for further discussion.
BTW. I'm testing with the current tip of the tree, but 3.7.3 fails in the same way.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue18378>
_______________________________________
More information about the Python-bugs-list
mailing list