diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2016-01-11 14:53:51 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2016-10-22 11:32:36 +0800 |
commit | 5398ecfe3f0fa84e609ea7ad174c175e21b951a5 (patch) | |
tree | 523831c714e53f3b9ed546b16a1e8498c33be8be /tools | |
parent | c954cabaad9e224c0c6129032d824012d332c11b (diff) | |
download | libnotify-5398ecfe3f0fa84e609ea7ad174c175e21b951a5.tar.gz |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/notify-send.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <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]); |