notify-send: Call setlocale in main function
It is required to correctly show translated messages on some locales. https://bugzilla.gnome.org/show_bug.cgi?id=760438
This commit is contained in:
parent
c954cabaad
commit
5398ecfe3f
|
@ -21,6 +21,7 @@
|
|||
#include "config.h"
|
||||
|
||||
#include <libnotify/notify.h>
|
||||
#include <locale.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -170,6 +171,8 @@ main (int argc, char *argv[])
|
|||
|
||||
body = NULL;
|
||||
|
||||
setlocale (LC_ALL, "");
|
||||
|
||||
g_type_init ();
|
||||
|
||||
g_set_prgname (argv[0]);
|
||||
|
|
Loading…
Reference in New Issue