diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2022-04-28 20:56:44 +0200 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2022-04-28 23:36:12 +0200 |
commit | e038625b87dda2389d004017bd2dcf2b65bc40f6 (patch) | |
tree | 55a62cbc28e0f41ceabcf25af566184a73592113 /scripts/gen_vimdoc.py | |
parent | 521e91e1c420bd5c94c35908181dbba81e58dd0f (diff) | |
download | rneovim-e038625b87dda2389d004017bd2dcf2b65bc40f6.tar.gz rneovim-e038625b87dda2389d004017bd2dcf2b65bc40f6.tar.bz2 rneovim-e038625b87dda2389d004017bd2dcf2b65bc40f6.zip |
fix(mac): use same $LANG fallback mechanism as Vim
In a locale "en_US", "en" is the language and "US" is the region.
Before this change, we were too clever for our own good and tried to handle the
region as well. But if the macOS primary language is set to "English" and the
region to "Norway", we would end up with "en_NO", which is a locale that does
not exist.
Now we only take the language into account. Taking the example from above would
yield "en_US", which is a sensible fallback.
If the region is important to you, set $LANG and the more specific LC_*
variables in your shell config or alternatively use `:help :language`.
References https://github.com/neovim/neovim/issues/18292
Diffstat (limited to 'scripts/gen_vimdoc.py')
0 files changed, 0 insertions, 0 deletions