summaryrefslogtreecommitdiffstats
path: root/test-tool
diff options
context:
space:
mode:
Diffstat (limited to 'test-tool')
-rw-r--r--test-tool/Makefile.am1
-rw-r--r--test-tool/test-tool.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/test-tool/Makefile.am b/test-tool/Makefile.am
index d58f1377..66d06e09 100644
--- a/test-tool/Makefile.am
+++ b/test-tool/Makefile.am
@@ -30,6 +30,7 @@ AM_CPPFLAGS = \
libguestfs_test_tool_SOURCES = test-tool.c
libguestfs_test_tool_CFLAGS = \
+ -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/src -I$(top_builddir)/src \
-Wall
libguestfs_test_tool_LDADD = \
diff --git a/test-tool/test-tool.c b/test-tool/test-tool.c
index f38490a7..39139e58 100644
--- a/test-tool/test-tool.c
+++ b/test-tool/test-tool.c
@@ -85,6 +85,10 @@ usage (void)
int
main (int argc, char *argv[])
{
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEBASEDIR);
+ textdomain (PACKAGE);
+
static const char *options = "t:?";
static const struct option long_options[] = {
{ "help", 0, 0, '?' },