From 5398ecfe3f0fa84e609ea7ad174c175e21b951a5 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Mon, 11 Jan 2016 14:53:51 +0800 Subject: 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 --- tools/notify-send.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/notify-send.c b/tools/notify-send.c index c0b9eeb..cafcf15 100644 --- a/tools/notify-send.c +++ b/tools/notify-send.c @@ -21,6 +21,7 @@ #include "config.h" #include +#include #include #include #include @@ -170,6 +171,8 @@ main (int argc, char *argv[]) body = NULL; + setlocale (LC_ALL, ""); + g_type_init (); g_set_prgname (argv[0]); -- cgit v1.2.1