I found the problem :
In fluxmenu.c the g_locale_from_utf8() function try to convert a string
from utf8 encoding. But the string can be NULL, and fluxmenu crash.
So I built a short patch to check if the string isn't empty before to
launch g_local_from_utf8() on it.
You can find it attached to that e-mail.

Best regards

Denis Briand
--- fluxmenu.c.orig	2008-08-11 12:51:38.000000000 +0200
+++ fluxmenu.c	2009-03-23 02:46:10.000000000 +0100
@@ -382,10 +382,14 @@
         gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, TYPE, &pre, TITRE, &deuz, VALEUR, &troiz, ICONE, &quatr, -1); /* Do something with the data */
         for (i = 0; i < indent; i++)
             putc(' ', fd);
-        pre = g_locale_from_utf8(pre,-1,0,0,0);
-        deuz = g_locale_from_utf8(deuz,-1,0,0,0);
-        troiz = g_locale_from_utf8(troiz,-1,0,0,0);
-        quatr = g_locale_from_utf8(quatr,-1,0,0,0);
+        if (pre)
+			pre = g_locale_from_utf8(pre,-1,0,0,0);
+        if (deuz)
+			deuz = g_locale_from_utf8(deuz,-1,0,0,0);
+        if (troiz)
+			troiz = g_locale_from_utf8(troiz,-1,0,0,0);
+        if (quatr)
+			quatr = g_locale_from_utf8(quatr,-1,0,0,0);
         fprintf(fd, "%s%s%s %s%s%s %s%s%s %s%s%s\n", 
                 pre ? "[" : "", pre ? pre : "", pre ? "]" : "",
                 deuz ? "(" : "", deuz ? deuz : "", deuz ? ")" : "", 

Attachment: signature.asc
Description: Digital signature

Reply via email to