Mercurial > vim
comparison src/ex_cmds2.c @ 2201:4c6b4298852f vim73
Other solution for GTK not changing the locale.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 21 May 2010 12:04:55 +0200 |
parents | 7d121c69f540 |
children | 1bac28a53fae |
comparison
equal
deleted
inserted
replaced
2200:99ba9a30755a | 2201:4c6b4298852f |
---|---|
4157 vim_setenv((char_u *)"LC_MESSAGES", mname); | 4157 vim_setenv((char_u *)"LC_MESSAGES", mname); |
4158 #ifdef FEAT_MULTI_LANG | 4158 #ifdef FEAT_MULTI_LANG |
4159 set_helplang_default(mname); | 4159 set_helplang_default(mname); |
4160 #endif | 4160 #endif |
4161 } | 4161 } |
4162 | |
4163 /* Set $LC_CTYPE, because it overrules $LANG, and | |
4164 * gtk_set_locale() calls setlocale() again. gnome_init() | |
4165 * sets $LC_CTYPE to "en_US" (that's a bug!). */ | |
4166 if (what != VIM_LC_MESSAGES) | |
4167 vim_setenv((char_u *)"LC_CTYPE", name); | |
4168 # ifdef FEAT_GUI_GTK | |
4169 /* Let GTK know what locale we're using. Not sure this is | |
4170 * really needed... */ | |
4171 if (gui.in_use) | |
4172 (void)gtk_set_locale(); | |
4173 # endif | |
4174 } | 4162 } |
4175 | 4163 |
4176 # ifdef FEAT_EVAL | 4164 # ifdef FEAT_EVAL |
4177 /* Set v:lang, v:lc_time and v:ctype to the final result. */ | 4165 /* Set v:lang, v:lc_time and v:ctype to the final result. */ |
4178 set_lang_var(); | 4166 set_lang_var(); |