Author lemburg
Recipients brian.curtin, lemburg, loewis, ned.deily, r.david.murray, skoczian, tim.golden
Date 2010-11-22.13:09:13
SpamBayes Score 1.17681e-07
Marked as misclassified No
Message-id <1290431356.38.0.635921035266.issue10466@psf.upfronthosting.co.za>
In-reply-to
Content
I think that's a bug in the resetlocale() API.

The correct way to reset the locale setting to defaults, it to use

setlocale(category, "")

The other issues here is that getlocale() appears to return non-ISO language codes on Windows. If that's indeed the case, then we would need to add mappings of the Windows codes to the ISO ones and use a reverse mappings to make setlocale() work with the ISO codes.

Perhaps it's easier to just update the mapping used by getdefaultencoding() to return the non-ISO codes used by Windows and then update the documentation to say that on Windows, non-ISO codes are returned.

BTW: I wonder why this hasn't popped up earlier.
History
Date User Action Args
2010-11-22 13:09:16lemburgsetrecipients: + lemburg, loewis, tim.golden, ned.deily, r.david.murray, brian.curtin, skoczian
2010-11-22 13:09:16lemburgsetmessageid: <1290431356.38.0.635921035266.issue10466@psf.upfronthosting.co.za>
2010-11-22 13:09:13lemburglinkissue10466 messages
2010-11-22 13:09:13lemburgcreate