mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
Merge pull request #4679 from equalsraf/tb-windows-lc
Windows: without libintl use LC_CTYPE instead of LC_MESSAGES
This commit is contained in:
@@ -3183,8 +3183,11 @@ void set_lang_var(void)
|
|||||||
* back to LC_CTYPE if it's empty. */
|
* back to LC_CTYPE if it's empty. */
|
||||||
# ifdef HAVE_WORKING_LIBINTL
|
# ifdef HAVE_WORKING_LIBINTL
|
||||||
loc = (char *) get_mess_env();
|
loc = (char *) get_mess_env();
|
||||||
# else
|
# elif defined(LC_MESSAGES)
|
||||||
loc = get_locale_val(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
|
# endif
|
||||||
set_vim_var_string(VV_LANG, loc, -1);
|
set_vim_var_string(VV_LANG, loc, -1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user