[issue7419] Crash in _locale.setlocale on windows

2009-12-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Fixed with r76625 (trunk), r76626 (py3k) and r76627 (relase31-maint) -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue7419] Crash in _locale.setlocale on windows

2009-12-01 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : import _locale _locale.setlocale(12345) Crashes on Windows with exit code 0xc417, a.k.a STATUS_INVALID_CRUNTIME_PARAMETER. 2.6 and 3.0 are not affected. setlocale should check the category before passing it to the C runtime: LC_MIN <= category &