Set locale in C programs so l10n works (RHBZ#559962).
[libguestfs.git] / test-tool / test-tool.c
index f38490a..39139e5 100644 (file)
@@ -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, '?' },