Merge "Drop fallback to deprecated locale.getdefaultlocale"

This commit is contained in:
Zuul
2025-06-17 18:27:44 +00:00
committed by Gerrit Code Review

View File

@ -230,8 +230,6 @@ class Client(ssh.Client):
# Update local environment
lang, encoding = locale.getlocale()
if not lang:
lang, encoding = locale.getdefaultlocale()
_locale = '.'.join([lang, encoding])
channel.update_environment({'LC_ALL': _locale,
'LANG': _locale})