[glib] Fix g_ascii_formatd tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix g_ascii_formatd tests
- Date: Sun, 18 Sep 2011 18:52:06 +0000 (UTC)
commit 1e82f73f8b26393403e126916e9348e5dc8169d9
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 18 14:50:31 2011 -0400
Fix g_ascii_formatd tests
The test was not changing to the locales it was looping over.
glib/tests/strfuncs.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/strfuncs.c b/glib/tests/strfuncs.c
index 66768e4..df8b67d 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]