From f7a1b07c1590341ebe9d4d2c4b9811e5188b7a1e Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Wed, 15 Feb 2012 15:23:29 +0000 Subject: [PATCH] Add an additional test that hopefully will shed more light on bug 666855. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22026 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/assistant-hierarchy.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gnome/assistant-hierarchy.c b/src/gnome/assistant-hierarchy.c index 1f716aedfd1..dc06f25ad6e 100644 --- a/src/gnome/assistant-hierarchy.c +++ b/src/gnome/assistant-hierarchy.c @@ -191,6 +191,11 @@ gnc_get_ea_locale_dir(const char *top_dir) /* 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