20 May
2019
20 May
'19
4:37 p.m.
On 17May2019 1929, Victor Stinner wrote:
Le ven. 17 mai 2019 à 18:42, Steve Dower <steve.dower@python.org> a écrit :
So we don't need an option. We just have to move our setlocale() call from Py_Initialize() into Py_Main()
Well, the implementation is super complex. It's not easy to move setlocale() call from Py_Initialize() into Py_Main(). I'm not sure that it's doable.
By Py_Main *calls* Py_Initialize (via the new APIs), so it can do whatever it likes before Py_Initialize is called. We'd be calling setlocale *earlier*, not later.
Cheers, Steve