summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-28 20:36:30 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-28 20:36:30 +0200
commite3a0b53c2e8985e51174f01ee58f8746ea2c45a9 (patch)
treed6ff3b7b800cb7ee760b9478ec9c76772c7cb916 /src/ex_cmds2.c
parentf0327f67c778f46cdf19d793c013f024f01ea818 (diff)
downloadvim-git-e3a0b53c2e8985e51174f01ee58f8746ea2c45a9.tar.gz
updated for version 7.3.1257v7.3.1257
Problem: With GNU gettext() ":lang de_DE.utf8" does not always result in German messages. Solution: Clear the $LANGUAGE environment variable.
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 22b41f415..4a860ca88 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -4261,6 +4261,9 @@ ex_language(eap)
if (what == LC_ALL)
{
vim_setenv((char_u *)"LANG", name);
+
+ /* Clear $LANGUAGE because GNU gettext uses it. */
+ vim_setenv((char_u *)"LANGUAGE", (char_u *)"");
# ifdef WIN32
/* Apparently MS-Windows printf() may cause a crash when
* we give it 8-bit text while it's expecting text in the