test_gnc_setlocale: Print diagnostic message, replacing comment.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23451 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2013-11-28 00:39:13 +00:00
parent 0317eedf39
commit a574917d8a

View File

@ -428,12 +428,6 @@ test_gnc_date_string_to_monthformat (void)
g_assert_cmpint (fmt, ==, 123);
}
/* There are some differences between distros in the way they name
* locales, and this can cause trouble with the locale-based
* formatting. If you get the assert in this function, run locale -a
* and make sure that en_US, en_GB, and fr_FR are installed and that
* if a suffix is needed it's in the suffixes array.
*/
static void
test_gnc_setlocale (int category, gchar *locale)
{
@ -463,6 +457,11 @@ test_gnc_setlocale (int category, gchar *locale)
if (localeval != NULL)
return;
}
g_fprintf (stderr, "There are some differences between distros in the way they name"
"locales, and this can cause trouble with the locale-based"
"formatting. If you get the assert in this function, run locale -a"
"and make sure that en_US, en_GB, and fr_FR are installed and that"
"if a suffix is needed it's in the suffixes array.");
g_assert_not_reached ();
}
/* timespec_normalize