aboutsummaryrefslogtreecommitdiff
path: root/src/util/program.c
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-06 22:46:29 +0000
committerng0 <ng0@n0.is>2019-09-06 22:46:29 +0000
commit6e599264ad13e8fc105493d74d7c11d46f8739ed (patch)
tree169bef1ecbade5a659831fb169f3ae6943af127f /src/util/program.c
parent4f13bc15113021ebf71d5d81e99bc29f8a07fc9c (diff)
downloadgnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.tar.gz
gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.zip
first step to remove plibc
Diffstat (limited to 'src/util/program.c')
-rw-r--r--src/util/program.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/util/program.c b/src/util/program.c
index 73beb8d57..77f4ea3ae 100644
--- a/src/util/program.c
+++ b/src/util/program.c
@@ -201,18 +201,18 @@ GNUNET_PROGRAM_run2 (int argc,
201 /* prepare */ 201 /* prepare */
202#if ENABLE_NLS 202#if ENABLE_NLS
203 if (NULL != pd->gettext_domain) 203 if (NULL != pd->gettext_domain)
204 {
205 setlocale (LC_ALL, "");
206 path = (NULL == pd->gettext_path)
207 ? GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LOCALEDIR)
208 : GNUNET_strdup (pd->gettext_path);
209 if (NULL != path)
204 { 210 {
205 setlocale (LC_ALL, ""); 211 bindtextdomain (pd->gettext_domain, path);
206 path = (NULL == pd->gettext_path) 212 GNUNET_free (path);
207 ? GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LOCALEDIR)
208 : GNUNET_strdup (pd->gettext_path);
209 if (NULL != path)
210 {
211 BINDTEXTDOMAIN (pd->gettext_domain, path);
212 GNUNET_free (path);
213 }
214 textdomain (pd->gettext_domain);
215 } 213 }
214 textdomain (pd->gettext_domain);
215 }
216#endif 216#endif
217 cnt = 0; 217 cnt = 0;
218 while (NULL != options[cnt].name) 218 while (NULL != options[cnt].name)