a5cc517100
This patch is prompted by the following deprecation warning:
DeprecationWarning: Use setlocale(), getencoding() and getlocale() instead
But getdefaultlocale() is scheduled to be removed in Python
3.13, so we need to act anyway.
We use LC_CTYPE as the most compatible setting. Probablly what
we really want for translations is LANG, but that is not a
valid argument for getlocale(). Fortunately, LC_CTYPE is set
when the environment variable LANG is set, so this works for us.
Change-Id: I07bdbaf95108aa4fdb4c645c12b196dcb820059b
(cherry picked from commit
|
||
---|---|---|
.. | ||
locale | ||
tests | ||
__init__.py | ||
_factory.py | ||
_gettextutils.py | ||
_i18n.py | ||
_lazy.py | ||
_locale.py | ||
_message.py | ||
_translate.py | ||
fixture.py | ||
log.py |