diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2016-01-11 14:30:41 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2016-01-11 14:30:41 +0800 |
commit | 05cb14dbb2d73b0f48d44d5ad1a24f9ae95172f0 (patch) | |
tree | c950dc095fd1cec7c0207c7d1207f092d052477d /src/daemon/gnuserv.c | |
parent | 7e3e4b6860e7ce220a4e8761ff23e93232272c40 (diff) | |
download | libgtop-05cb14dbb2d73b0f48d44d5ad1a24f9ae95172f0.tar.gz |
Call setlocale in main function of libgtop_daemon2
It is required to correctly show translated messages on some locales.
https://bugzilla.gnome.org/show_bug.cgi?id=760432
Diffstat (limited to 'src/daemon/gnuserv.c')
-rw-r--r-- | src/daemon/gnuserv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/daemon/gnuserv.c b/src/daemon/gnuserv.c index 6965946b..8af908bb 100644 --- a/src/daemon/gnuserv.c +++ b/src/daemon/gnuserv.c @@ -43,6 +43,7 @@ #include <glibtop/gnuserv.h> #include <errno.h> +#include <locale.h> #include "daemon.h" @@ -473,6 +474,8 @@ main (int argc, char **argv) int ils = -1; /* internet domain listen socket */ + setlocale (LC_ALL, ""); + /* On non-glibc systems, this is not set up for us. */ if (!program_invocation_name) { char *arg; |