r22026 - gnucash/trunk/src/gnome - Add an additional test that hopefully will shed more light on bug

Geert Janssens gjanssens at code.gnucash.org
Wed Feb 15 10:23:30 EST 2012


Author: gjanssens
Date: 2012-02-15 10:23:29 -0500 (Wed, 15 Feb 2012)
New Revision: 22026
Trac: http://svn.gnucash.org/trac/changeset/22026

Modified:
   gnucash/trunk/src/gnome/assistant-hierarchy.c
Log:
Add an additional test that hopefully will shed more light on bug
666855.

Modified: gnucash/trunk/src/gnome/assistant-hierarchy.c
===================================================================
--- gnucash/trunk/src/gnome/assistant-hierarchy.c	2012-02-15 11:22:43 UTC (rev 22025)
+++ gnucash/trunk/src/gnome/assistant-hierarchy.c	2012-02-15 15:23:29 UTC (rev 22026)
@@ -191,6 +191,11 @@
     /* On win32, setlocale() doesn't say anything useful. Use
        glib's function instead. */
     locale = g_win32_getlocale();
+    if (!locale)
+    {
+        PWARN ("Couldn't retrieve locale. Falling back to default one.")
+        locale = g_strdup ("C");
+    }
 # else
     /*
      * Mac OS X 10.1 and earlier, not only doesn't have LC_MESSAGES



More information about the gnucash-changes mailing list