From e3a0b53c2e8985e51174f01ee58f8746ea2c45a9 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 28 Jun 2013 20:36:30 +0200 Subject: [PATCH] updated for version 7.3.1257 Problem: With GNU gettext() ":lang de_DE.utf8" does not always result in German messages. Solution: Clear the $LANGUAGE environment variable. --- src/ex_cmds2.c | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) 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 diff --git a/src/version.c b/src/version.c index fe0ce589b..4980ae570 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1257, /**/ 1256, /**/ -- 2.50.1