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:
Ting-Wei Lan 2016-01-11 14:53:51 +08:00
parent c954cabaad
commit 5398ecfe3f
1 changed files with 3 additions and 0 deletions

View File

@ -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]);