[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English
Barry Alan Scott
report at bugs.python.org
Sun Mar 29 13:08:38 CEST 2015
Barry Alan Scott added the comment:
Mac OS X use the __CF_USER_TEXT_ENCODING env var to setup the locale in for native libraries.
I found that for GUI python code I needed to convert the value in __CF_USER_TEXT_ENCODING into a suitable call to setlocale().
The code I use is attached to Issue23797.
----------
nosy: +barry-scott
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18378>
_______________________________________
More information about the Python-bugs-list
mailing list