Commit 5398ecfe authored by Ting-Wei Lan's avatar Ting-Wei Lan
Browse files

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
parent c954caba
......@@ -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]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment