aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/man.lua
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro+github@gmail.com>2018-12-11 21:58:35 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-12-11 21:58:35 +0100
commit57acfceabeb349377ce244de9b67732b21ed1d18 (patch)
treea0eabb5eec7e016d4e1090f64c678bef74e8f230 /runtime/lua/man.lua
parent5a90761e8a6365156e10be7ad5825c8f7f2f2dfb (diff)
downloadrneovim-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