git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Set locale in C programs so l10n works (RHBZ#559962).
[libguestfs.git]
/
test-tool
/
test-tool.c
diff --git
a/test-tool/test-tool.c
b/test-tool/test-tool.c
index
f38490a
..
39139e5
100644
(file)
--- 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, '?' },