diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-04-29 20:41:19 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-04-29 20:41:19 -0400 |
commit | cd3461b0047a7327d08ffd30b8d30fd6b92da399 (patch) | |
tree | 5287e40310a36f9803f0fe9dcd662362bbff139e | |
parent | 7dab6d4d8f800621f693b388e2288f8f68b65da0 (diff) | |
parent | 5f6e63bf38db0705c4cd263bec57fbda276d4e26 (diff) | |
download | rneovim-cd3461b0047a7327d08ffd30b8d30fd6b92da399.tar.gz rneovim-cd3461b0047a7327d08ffd30b8d30fd6b92da399.tar.bz2 rneovim-cd3461b0047a7327d08ffd30b8d30fd6b92da399.zip |
Merge pull request #4679 from equalsraf/tb-windows-lc
Windows: without libintl use LC_CTYPE instead of LC_MESSAGES
-rw-r--r-- | src/nvim/ex_cmds2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index a0a0b9d3a5..6723bfc7e0 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -3183,8 +3183,11 @@ void set_lang_var(void) * back to LC_CTYPE if it's empty. */ # ifdef HAVE_WORKING_LIBINTL loc = (char *) get_mess_env(); -# else +# elif defined(LC_MESSAGES) loc = get_locale_val(LC_MESSAGES); +# else + // In Windows LC_MESSAGES is not defined fallback to LC_CTYPE + loc = get_locale_val(LC_CTYPE); # endif set_vim_var_string(VV_LANG, loc, -1); |