This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients Arfrever, lemburg, loewis, pitrou, sdaoden, vstinner
Date 2011-01-28.09:29:33
SpamBayes Score 1.673676e-07
Marked as misclassified No
Message-id <4D428C7B.9050106@egenix.com>
In-reply-to <1296167575.93.0.54037501928.issue11022@psf.upfronthosting.co.za>
Content
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().
History
Date User Action Args
2011-01-28 09:29:33lemburgsetrecipients: + lemburg, loewis, pitrou, vstinner, Arfrever, sdaoden
2011-01-28 09:29:33lemburglinkissue11022 messages
2011-01-28 09:29:33lemburgcreate