Mercurial > vim
diff src/ex_cmds2.c @ 534:c6296b0ad9ea v7.0151
updated for version 7.0151
author | vimboss |
---|---|
date | Thu, 29 Sep 2005 18:26:07 +0000 |
parents | da9142bd190a |
children | 25a70b1cd2da |
line wrap: on
line diff
--- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -3901,7 +3901,15 @@ ex_language(eap) * FEAT_GETTEXT isn't defined, so that shell commands use this * value. */ if (what == LC_ALL) + { vim_setenv((char_u *)"LANG", name); +# ifdef WIN32 + /* Apparently MS-Windows printf() may cause a crash when + * we give it 8-bit text while it's expecting text in the + * current locale. This call avoids that. */ + setlocale(LC_CTYPE, "C"); +# endif + } if (what != LC_CTYPE) { char_u *mname;