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.

Author eryksun
Recipients eryksun, lemburg, serhiy.storchaka, vstinner
Date 2022-02-08.10:58:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644317928.84.0.128293031747.issue46659@roundup.psfhosted.org>
In-reply-to
Content
> Oh. Serhiy asked me to use LC_TIME rather than LC_CTYPE.

Since Locale*Calendar is documented as not being thread safe, __init__() could get the real default via setlocale(LC_TIME, "") when locale=None and the current LC_TIME is "C". Restore it back to "C" after getting the default. That should usually match the behavior from previous versions that called getdefaultlocale(). In cases where it differs, it's fixing a bug because the default LC_TIME is the correct default.
History
Date User Action Args
2022-02-08 10:58:48eryksunsetrecipients: + eryksun, lemburg, vstinner, serhiy.storchaka
2022-02-08 10:58:48eryksunsetmessageid: <1644317928.84.0.128293031747.issue46659@roundup.psfhosted.org>
2022-02-08 10:58:48eryksunlinkissue46659 messages
2022-02-08 10:58:48eryksuncreate