16 May
2019
16 May
'19
11:32 p.m.
Hi,
I'm working on my PEP 587 "Python Initialization Configuration": https://www.python.org/dev/peps/pep-0587/
I just proposed to add a new "configure_locale" configuration parameter to leave the LC_CTYPE locale unchanged: https://bugs.python.org/issue36945
Right now, Python always calls setlocale(LC_CTYPE, "") on all platforms to set the LC_CTYPE locale to the user preferred locale.
Is it a problem when Python is embedded in an application? Or am I trying to fix an artificial issue? :-)
By the way, Nick Coghlan and me decided to disable LC_CTYPE locale coercion (PEP 538) and UTF-8 Mode (PEP 540) by default in Python 3.8. It should reduce the risk of mojibake.
Victor
Night gathers, and now my watch begins. It shall not end until my death.