Message 121960 - Python tracker
In investigating issue 10466 I find that getlocale on windows returns the value that windows accepts for me. For example on my US windows system, getlocale returns ('English_United States', '1252'), and that appears to work when passed to setlocale. So I'm closing this bug as works for me, since I can't reproduce it. (Tested on 3.2a3 and 2.6.5). Issue 10466 turns on the fact that getdefaultlocale() does *not* return something that windows can consume, though.