From 7f85e0cd90adce77b8e2658598ccea69761a843d Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 13 Aug 2021 18:34:37 +0200 Subject: [PATCH] [gettext] setenv -> env_set --- src/intl/libintl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intl/libintl.c b/src/intl/libintl.c index 4923055ef..67c488da9 100644 --- a/src/intl/libintl.c +++ b/src/intl/libintl.c @@ -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++; }