diff options
Diffstat (limited to 'src/util/program.c')
-rw-r--r-- | src/util/program.c | 20 |
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) |