Message412829
| 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:48 | eryksun | set | recipients:
+ eryksun, lemburg, vstinner, serhiy.storchaka |
| 2022年02月08日 10:58:48 | eryksun | set | messageid: <1644317928.84.0.128293031747.issue46659@roundup.psfhosted.org> |
| 2022年02月08日 10:58:48 | eryksun | link | issue46659 messages |
| 2022年02月08日 10:58:48 | eryksun | create |
|