1
0
forked from aniani/vim

patch 8.0.0175: setting language on MS-Windows does not always work

Problem:    Setting language in gvim on MS-Windows does not work when
            libintl.dll is dynamically linked with msvcrt.dll.
Solution:   Use putenv() from libintl as well. (Ken Takata, closes #1082)
This commit is contained in:
Bram Moolenaar
2017-01-12 21:44:49 +01:00
parent b8f7bd68f6
commit 972c3b8f1b
6 changed files with 123 additions and 59 deletions

View File

@@ -4455,6 +4455,9 @@ vim_setenv(char_u *name, char_u *val)
{
sprintf((char *)envbuf, "%s=%s", name, val);
putenv((char *)envbuf);
# ifdef libintl_putenv
libintl_putenv((char *)envbuf);
# endif
}
#endif
#ifdef FEAT_GETTEXT