diff --git a/glib/tests/strfuncs.c b/glib/tests/strfuncs.c index 66768e4e6..df8b67dc5 100644 --- a/glib/tests/strfuncs.c +++ b/glib/tests/strfuncs.c @@ -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); }