aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorMark Bainter <mbainter+github@gmail.com>2015-04-12 21:26:06 +0000
committerMark Bainter <mbainter+github@gmail.com>2015-04-18 04:50:12 +0000
commita4e51f72ab5dac1149b415c6fc0bf1c87a11acda (patch)
treeb884d94ab685d81da3d65cb1246e9714c123b706 /src/nvim/ex_cmds2.c
parent4848158cc12443c27e298b01543bf620172508c3 (diff)
downloadrneovim-a4e51f72ab5dac1149b415c6fc0bf1c87a11acda.tar.gz
rneovim-a4e51f72ab5dac1149b415c6fc0bf1c87a11acda.tar.bz2
rneovim-a4e51f72ab5dac1149b415c6fc0bf1c87a11acda.zip
Remove char_u: vim_setenv()
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index 463cc794c7..848daf023f 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -3127,22 +3127,20 @@ void ex_language(exarg_T *eap)
++_nl_msg_cat_cntr;
#endif
/* Reset $LC_ALL, otherwise it would overrule everything. */
- vim_setenv((char_u *)"LC_ALL", (char_u *)"");
+ vim_setenv("LC_ALL", "");
if (what != LC_TIME) {
/* Tell gettext() what to translate to. It apparently doesn't
* use the currently effective locale. */
if (what == LC_ALL) {
- vim_setenv((char_u *)"LANG", name);
+ vim_setenv("LANG", (char *)name);
/* Clear $LANGUAGE because GNU gettext uses it. */
- vim_setenv((char_u *)"LANGUAGE", (char_u *)"");
+ vim_setenv("LANGUAGE", "");
}
if (what != LC_CTYPE) {
- char_u *mname;
- mname = name;
- vim_setenv((char_u *)"LC_MESSAGES", mname);
- set_helplang_default(mname);
+ vim_setenv("LC_MESSAGES", (char *)name);
+ set_helplang_default((char *)name);
}
}