[glib] Call setlocale initially
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Call setlocale initially
- Date: Mon, 19 Apr 2010 13:33:41 +0000 (UTC)
commit 69bd033e11f63d50f551754dc9e98906d28e3561
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Apr 19 09:30:22 2010 -0400
Call setlocale initially
That seems to be required to make bindtextdomain work in the
l10n tests. See bug 616152.
gio/tests/gsettings.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c
index 01d8b18..edd7c8e 100644
--- a/gio/tests/gsettings.c
+++ b/gio/tests/gsettings.c
@@ -1012,6 +1012,8 @@ test_keyfile (void)
int
main (int argc, char *argv[])
{
+ setlocale (LC_ALL, "");
+
g_setenv ("GSETTINGS_SCHEMA_DIR", ".", TRUE);
g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]