Author AndersMunch
Recipients AndersMunch, lemburg, paul.moore, steve.dower, swt2c, tim.golden, zach.ware
Date 2021-02-17.11:36:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613561775.0.0.643680445021.issue43115@roundup.psfhosted.org>
In-reply-to
Content
getlocale is documented to return None for the encoding if no encoding can be determined.  There's no need to guess.

I can't change the locale.setlocale call, because where I'm actually having the problem, I'm not even calling locale.setlocale: wxWidgets is calling C setlocale, that's where it comes from.

wxWidgets aside, it doesn't seem right that getlocale fails when setlocale succeeded.
History
Date User Action Args
2021-02-17 11:36:15AndersMunchsetrecipients: + AndersMunch, lemburg, paul.moore, tim.golden, zach.ware, steve.dower, swt2c
2021-02-17 11:36:15AndersMunchsetmessageid: <1613561775.0.0.643680445021.issue43115@roundup.psfhosted.org>
2021-02-17 11:36:14AndersMunchlinkissue43115 messages
2021-02-17 11:36:14AndersMunchcreate