aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-12-10 10:47:13 -0500
committerGitHub <noreply@github.com>2017-12-10 10:47:13 -0500
commit6f41ce026005dab1129685f31bce9b85e62fd41f (patch)
tree66b8f63e621104792a07b5bd31282923b47f695e /src/nvim/option.c
parentabe38f7d26d68d7032ea391c039c56c8b87675a5 (diff)
parent1f2b35860f755513a58c1d010f082d946c889b47 (diff)
downloadrneovim-6f41ce026005dab1129685f31bce9b85e62fd41f.tar.gz
rneovim-6f41ce026005dab1129685f31bce9b85e62fd41f.tar.bz2
rneovim-6f41ce026005dab1129685f31bce9b85e62fd41f.zip
Merge pull request #7704 from jamessan/mac-lang-fix
mac: Set $LANG based on the system locale
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 37c4233142..f8a05f133d 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -75,6 +75,7 @@
#include "nvim/window.h"
#include "nvim/os/os.h"
#include "nvim/os/input.h"
+#include "nvim/os/lang.h"
/*
* The options that are local to a window or buffer have "indir" set to one of
@@ -784,6 +785,8 @@ void set_init_1(void)
didset_options2();
+ lang_init();
+
// enc_locale() will try to find the encoding of the current locale.
// This will be used when 'default' is used as encoding specifier
// in 'fileencodings'