diff --git a/src/virtManager/cli.py b/src/virtManager/cli.py index e70034e00..120c08303 100644 --- a/src/virtManager/cli.py +++ b/src/virtManager/cli.py @@ -85,7 +85,12 @@ def setup_logging(appname, debug_stdout): sys.excepthook = exception_log def setup_i18n(gettext_app, gettext_dir): - locale.setlocale(locale.LC_ALL, '') + try: + locale.setlocale(locale.LC_ALL, '') + except: + # Can happen if user passed a bogus LANG + pass + gettext.install(gettext_app, gettext_dir) gettext.bindtextdomain(gettext_app, gettext_dir)