mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
...
This commit is contained in:
@@ -338,11 +338,11 @@ def set_locale() -> None:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except Exception:
|
||||
log_error('Failed to set locale with LANG:', os.environ.get('LANG'))
|
||||
os.environ.pop('LANG', None)
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except Exception:
|
||||
log_error('Failed to set locale with no LANG')
|
||||
if os.environ.pop('LANG', None) is not None:
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except Exception:
|
||||
log_error('Failed to set locale with no LANG')
|
||||
|
||||
|
||||
def _main() -> None:
|
||||
|
||||
Reference in New Issue
Block a user