mac: Set $LANG based on the system locale

Unix's typical locale-related environment variables aren't always set
appropriately on a Mac.  Instead of relying on them, query the locale
information using Mac specific APIs and then set $LANG appropriately for
the rest of nvim.

Closes #5873
This commit is contained in:
James McCoy
2017-12-07 20:53:02 -05:00
parent 4a5bc6275d
commit 1f2b35860f
4 changed files with 53 additions and 0 deletions

7
src/nvim/os/lang.h Normal file
View File

@@ -0,0 +1,7 @@
#ifndef NVIM_OS_LANG_H
#define NVIM_OS_LANG_H
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "os/lang.h.generated.h"
#endif
#endif // NVIM_OS_LANG_H