mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 08:26:14 +01:00
Fix g_ascii_formatd tests
The test was not changing to the locales it was looping over.
This commit is contained in:
parent
eb45a590fa
commit
1e82f73f8b
@ -910,6 +910,7 @@ check_strtod_number (gdouble num, gchar *fmt, gchar *str)
|
|||||||
|
|
||||||
for (l = 0; l < G_N_ELEMENTS (locales); l++)
|
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_ascii_formatd (buf, G_ASCII_DTOSTR_BUF_SIZE, fmt, num);
|
||||||
g_assert_cmpstr (buf, ==, str);
|
g_assert_cmpstr (buf, ==, str);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user