Fix g_ascii_formatd tests

The test was not changing to the locales it was looping over.
This commit is contained in:
Matthias Clasen 2011-09-18 14:50:31 -04:00
parent eb45a590fa
commit 1e82f73f8b

View File

@ -910,6 +910,7 @@ check_strtod_number (gdouble num, gchar *fmt, gchar *str)
for (l = 0; l < G_N_ELEMENTS (locales); l++)
{
setlocale (LC_ALL, locales[l]);
g_ascii_formatd (buf, G_ASCII_DTOSTR_BUF_SIZE, fmt, num);
g_assert_cmpstr (buf, ==, str);
}