Message127263
STINNER Victor wrote:
>
> STINNER Victor <victor.stinner@haypocalc.com> added the comment:
>
>> upon program startup, init LibC environment: setlocale(LC_ALL, "");
>
> Python 3 does something like that: Py_InitializeEx() calls setlocale(LC_CTYPE, ""). But I (and others) consider that as a bug (see #6203 discussion): Python should not do that (nor any library) implicitly, but a *program* can do that (once) at startup (explicitly).
Agreed. See the discussion on the ticket for more details.
setlocale() should only be called by applications, not by libraries.
For Python this means: calling it in main() is fine, but not
in Py_InitializeEx(). |
|
Date |
User |
Action |
Args |
2011-01-28 09:29:33 | lemburg | set | recipients:
+ lemburg, loewis, pitrou, vstinner, Arfrever, sdaoden |
2011-01-28 09:29:33 | lemburg | link | issue11022 messages |
2011-01-28 09:29:33 | lemburg | create | |
|