[FIX] don't use deprecated get_default_locale

This commit is contained in:
Stéphane Bidoul 2023-08-28 22:18:13 +02:00
parent d40461b2a7
commit 9a48be74e5
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ def get_server_environment():
except Exception:
rev_id = "Can not retrieve revison from git or bzr"
os_lang = ".".join([x for x in locale.getdefaultlocale() if x])
os_lang = ".".join([x for x in locale.getlocale() if x])
if not os_lang:
os_lang = "NOT SET"
if os.name == "posix" and platform.system() == "Linux":