[evolution] LC_ADDRESS is no posix and may not be defined.



commit 328334d9c9eb4c0c9ed249eb33461a0071df9635
Author: Antoine Jacoutot <ajacoutot openbsd org>
Date:   Sat Oct 1 13:50:24 2011 +0200

    LC_ADDRESS is no posix and may not be defined.
    
    Only setlocale(2) LC_ADDRESS is this macro actually exist.
    https://bugzilla.gnome.org/show_bug.cgi?id=660624

 addressbook/gui/widgets/eab-gui-util.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c
index 6994af2..09830a9 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -663,7 +663,11 @@ get_locales (void)
 	gchar *dot;
 	gchar **split;
 
+#ifdef LC_ADDRESS
 	locale = g_strdup (setlocale (LC_ADDRESS, NULL));
+#else
+	locale = NULL;
+#endif
 	if (!locale)
 		return NULL;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]