summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-02-01 13:14:16 +0100
committerBram Moolenaar <Bram@vim.org>2017-02-01 13:14:16 +0100
commit7c23d1d9d9cc1d3d19fe35708da7c5d5b3556e05 (patch)
tree74069459d85bf99f5b5048ff9f00511d13b0e058 /src/vim.h
parent168dd00f72515750505458018767f2ae0bcdb54e (diff)
downloadvim-git-7c23d1d9d9cc1d3d19fe35708da7c5d5b3556e05.tar.gz
patch 8.0.0280: problem setting multi-byte environment var on MS-Windowsv8.0.0280
Problem: On MS-Windows setting an environment variable with multi-byte strings does not work well. Solution: Use wputenv when possible. (Taro Muraoka, Ken Takata)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index abee386cb..f3e87fef5 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -594,6 +594,7 @@ extern int (*dyn_libintl_putenv)(const char *envstring);
# endif
# define textdomain(domain) (*dyn_libintl_textdomain)(domain)
# define libintl_putenv(envstring) (*dyn_libintl_putenv)(envstring)
+# define libintl_wputenv(envstring) (*dyn_libintl_wputenv)(envstring)
# else
# include <libintl.h>
# define _(x) gettext((char *)(x))