0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2013-06-28 20:36:30 +02:00
parent f0327f67c7
commit e3a0b53c2e
2 changed files with 5 additions and 0 deletions

View File

@@ -4261,6 +4261,9 @@ ex_language(eap)
if (what == LC_ALL) if (what == LC_ALL)
{ {
vim_setenv((char_u *)"LANG", name); vim_setenv((char_u *)"LANG", name);
/* Clear $LANGUAGE because GNU gettext uses it. */
vim_setenv((char_u *)"LANGUAGE", (char_u *)"");
# ifdef WIN32 # ifdef WIN32
/* Apparently MS-Windows printf() may cause a crash when /* Apparently MS-Windows printf() may cause a crash when
* we give it 8-bit text while it's expecting text in the * we give it 8-bit text while it's expecting text in the

View File

@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1257,
/**/ /**/
1256, 1256,
/**/ /**/