diff options
author | Marco Hinz <mh.codebro+github@gmail.com> | 2018-12-11 21:58:35 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-12-11 21:58:35 +0100 |
commit | 57acfceabeb349377ce244de9b67732b21ed1d18 (patch) | |
tree | a0eabb5eec7e016d4e1090f64c678bef74e8f230 /runtime/lua/man.lua | |
parent | 5a90761e8a6365156e10be7ad5825c8f7f2f2dfb (diff) | |
download | rneovim-57acfceabeb349377ce244de9b67732b21ed1d18.tar.gz rneovim-57acfceabeb349377ce244de9b67732b21ed1d18.tar.bz2 rneovim-57acfceabeb349377ce244de9b67732b21ed1d18.zip |
macOS: infer primary language if $LANG is empty #9345
The macOS preferences have a section called `Language & Region`. There is always
at least one language defined, the primary language.
CFLocaleCopyPreferredLanguages() returns the languages defined in that section,
the first element being the primary language.
Use the primary language in case CFLocaleCopyCurrent() returns NULL.
In the case that the above fallback does not work either, which is very
unlikely, log the error and continue with an empty $LANG.
References #9134
Diffstat (limited to 'runtime/lua/man.lua')
0 files changed, 0 insertions, 0 deletions