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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user