mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.0151
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user