Merge pull request #444 from bebehei/dunstify-utf8-icon

Set Locale in dunstify
This commit is contained in:
Benedikt Heine 2017-11-24 02:35:33 +01:00 committed by GitHub
commit 7191104147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
#include <glib.h>
#include <libnotify/notify.h>
#include <locale.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
@ -252,6 +253,7 @@ void add_hint(NotifyNotification *n, char *str)
int main(int argc, char *argv[])
{
setlocale(LC_ALL, "");
#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init();
#endif