diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-01-12 21:44:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-01-12 21:44:49 +0100 |
commit | 972c3b8f1b50e2f887a397c324af99eb354aad0b (patch) | |
tree | d830bec1d8553a493f1c24b09a84c99a45bf0c78 /src/misc1.c | |
parent | b8f7bd68f6fdff51ca4db5b145dcde42ee7b804b (diff) | |
download | vim-972c3b8f1b50e2f887a397c324af99eb354aad0b.zip |
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)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c index b9bd99716..01734c4e0 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -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 |