Author AndersMunch
Recipients AndersMunch, eryksun, lemburg, paul.moore, steve.dower, swt2c, tim.golden, zach.ware
Date 2021-02-23.10:42:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>> What does use getlocale is time.strptime and datetime.datetime.strptime, so when getlocale fails, strptime fails.

> Would they work with getlocale() returning None for the encoding ?

Yes. All getlocale is used for in is comparing the value returned to the previous value returned.

I expect changing _strptime._getlang to return the unnormalized value locale._setlocale(locale.LC_TIME, None) would work as well and more robustly.
Date User Action Args
2021-02-23 10:42:08AndersMunchsetrecipients: + AndersMunch, lemburg, paul.moore, tim.golden, zach.ware, eryksun, steve.dower, swt2c
2021-02-23 10:42:08AndersMunchsetmessageid: <>
2021-02-23 10:42:08AndersMunchlinkissue43115 messages
2021-02-23 10:42:07AndersMunchcreate