macOS: Set LANG to en_US if cocoa reports language as en_* that is not a valid locale

Fixes #3899
This commit is contained in:
Kovid Goyal
2021-08-05 06:29:21 +05:30
parent 276a82d1f7
commit 9e7253c179
6 changed files with 32 additions and 6 deletions

View File

@@ -22,6 +22,11 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
event which breaks some applications that grab the mouse but cant handle
mouse events (:iss:`3902`)
- macOS: When the language is set to English and the country to one for which
an English locale does not exist, set :envvar:`LANG` to ``en_US.UTF-8``
(:iss:`3899`)
0.22.2 [2021-08-02]
----------------------

View File

@@ -66,6 +66,12 @@ Variables that influence kitty behavior
Variables that kitty sets when running child programs
.. envvar:: LANG
This is set only on macOS, and only if the country and language from the
macOS user settings form a valid locale.
.. envvar:: KITTY_WINDOW_ID
An integer that is the id for the kitty :term:`window` the program is running in.