diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-09-29 18:26:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-09-29 18:26:07 +0000 |
commit | 482aaeb058a3c05235148d22f6c511416da009fb (patch) | |
tree | b9c63e97ec2826bfeea041afe176a04763dbcfa8 /src/ex_cmds2.c | |
parent | 4463f296d0744915fa25dbd893821833043f9a25 (diff) |
updated for version 7.0151v7.0151
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r-- | src/ex_cmds2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index c635bfc4ce..449b66c374 100644 --- 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; |