[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-capi-sig
Subject:    [capi-sig] Re: Do we need an option to leave the LC_CTYPE locale unchanged?
From:       Steve Dower <steve.dower () python ! org>
Date:       2019-05-20 16:37:38
Message-ID: 546e4a32-da21-fa2d-40a6-31b90afc7f5a () python ! org
[Download RAW message or body]

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
_______________________________________________
capi-sig mailing list -- capi-sig@python.org
To unsubscribe send an email to capi-sig-leave@python.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic