bpo-46659: Enhance LocaleTextCalendar for C locale#31214
Conversation
Sorry, something went wrong.
If the LC_TIME locale is "C", use the user preferred locale.
|
@eryksun: I modified the implementation to only get the user preferred locale once, in the constructor. Is it better? |
Sorry, something went wrong.
|
I tested manually the change on FreeBSD: it works, LC_TIME is also FreeBSD has a "POSIX" locale, but it's not used when LC_ALL, LC_CTYPE and LANG environment variable at not set: LC_CTYPE is "C" in this case. |
Sorry, something went wrong.
|
I merged my PR. Thanks @eryksun for your feedback and the nice idea of reusing calendar should now be a little bit better in some corner cases, but for the regular use case, there should be no change between Python 3.10 and 3.11. |
Sorry, something went wrong.
If the LC_TIME locale is "C", use the user preferred locale.
If the LC_TIME locale is "C", use the user preferred locale.
https://bugs.python.org/issue46659