➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 AndersMunch
收信人 AndersMunch, eryksun, lemburg, paul.moore, steve.dower, swt2c, tim.golden, zach.ware
日期 2021-02-23.10:42:07
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1614076928.3.0.673842676489.issue43115@roundup.psfhosted.org>
In-reply-to
内容
>> 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 _strptime.py 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.
历史
日期 用户 动作 参数
2021-02-23 10:42:08AndersMunch修改recipients: + AndersMunch, lemburg, paul.moore, tim.golden, zach.ware, eryksun, steve.dower, swt2c
2021-02-23 10:42:08AndersMunch修改messageid: <1614076928.3.0.673842676489.issue43115@roundup.psfhosted.org>
2021-02-23 10:42:08AndersMunch链接issue43115 messages
2021-02-23 10:42:07AndersMunch创建