1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

[gettext] setenv -> env_set

This commit is contained in:
Witold Filipczyk 2021-08-13 18:34:37 +02:00
parent b2054e1846
commit 7f85e0cd90

View File

@ -10,6 +10,7 @@
#include "elinks.h"
#include "intl/libintl.h"
#include "util/env.h"
/* The number of the charset to which the "elinks" domain was last
* bound with bind_textdomain_codeset(), or -1 if none yet. This
@ -216,7 +217,7 @@ set_language(int language)
*p = '_';
}
}
setenv("LANGUAGE", LANGUAGE, 1);
env_set("LANGUAGE", LANGUAGE, -1);
_nl_msg_cat_cntr++;
}