Mercurial > vim
changeset 5027:5751284311f3 v7.3.1257
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.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 28 Jun 2013 20:36:30 +0200 |
parents | aa1ebdf70483 |
children | 234f3d9c3048 |
files | src/ex_cmds2.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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