Segfault with LANG=nl_NL, not with LANG=nl_NL.UTF-8

tjoen tjoen at dds.nl
Wed Jul 13 03:14:07 EDT 2011


On Tue, 2011-07-12 at 21:46 +0200, Vincent Smeets wrote:

Thanks for your reply.
I hope you don't mind if I replied to the gnucash list.

> this looks like http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616150
> 
> On 12-07-11 20:30, tjoen wrote:

> > $ LANGUAGE=nl_NL LANG=nl_NL gnucash
> > [create new file]
> > Segmentation fault

Looks like the same bug. So not a GNUcash but a gtk+-2 bug according
to the patch (I am using the same gtk+-2.24.4)

--- gtk+2.0-2.24.4.orig/gtk/gtkentrycompletion.c
+++ gtk+2.0-2.24.4/gtk/gtkentrycompletion.c
@@ -790,7 +790,8 @@ gtk_entry_completion_default_completion_
       normalized_string = g_utf8_normalize (item, -1, G_NORMALIZE_ALL);
       case_normalized_string = g_utf8_casefold (normalized_string, -1);
       
-      if (!strncmp (key, case_normalized_string, strlen (key)))
+      if ((case_normalized_string != NULL) &&
+          !strncmp (key, case_normalized_string, strlen (key)))
        ret = TRUE;
       
       g_free (item);





More information about the gnucash-user mailing list