Sorry, something went wrong.
Sorry, something went wrong.
|
Locale is too difficult to me, so I can not say LGTM. |
Sorry, something went wrong.
|
At least, I feel it is very tempting API that can be used to get preferred language without calling setlocale()... The function is convenient until you fall into a case where it doesn't work as expected. It's similar to mixing Python 2 str and unicode types. It works in most cases, until someone enters a name with a single non-ASCII character, and then suddently everything fall apart. |
Sorry, something went wrong.
The locale.getdefaultlocale() function is deprecated and will be removed in
Python 3.13. Use locale.setlocale(),
locale.getpreferredencoding(False) and locale.getlocale() functions
instead.
https://bugs.python.org/issue46659