summaryrefslogtreecommitdiff
path: root/src/lexgrog_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexgrog_test.c')
-rw-r--r--src/lexgrog_test.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lexgrog_test.c b/src/lexgrog_test.c
index 3d604d7c..992b6910 100644
--- a/src/lexgrog_test.c
+++ b/src/lexgrog_test.c
@@ -35,7 +35,6 @@
#include "dirname.h"
#include "gettext.h"
-#include <locale.h>
#define _(String) gettext (String)
#define N_(String) gettext_noop (String)
@@ -136,15 +135,7 @@ int main (int argc, char **argv)
program_name = base_name (argv[0]);
init_debug ();
-
- if (!setlocale (LC_ALL, "") && !getenv ("MAN_NO_LOCALE_WARNING"))
- /* Obviously can't translate this. */
- error (0, 0, "can't set the locale; make sure $LC_* and $LANG "
- "are correct");
- setenv ("MAN_NO_LOCALE_WARNING", "1", 1);
- bindtextdomain (PACKAGE, LOCALEDIR);
- bindtextdomain (PACKAGE "-gnulib", LOCALEDIR);
- textdomain (PACKAGE);
+ init_locale (LC_ALL, "");
if (argp_parse (&argp, argc, argv, 0, 0, 0))
exit (FAIL);