[gtk+] Bug 584638 - Build of gtkupdateiconcache without NLS breaks



commit 6b9a3c9057244c5d1a6032e0e5a1e62b53247bc4
Author: Christian Dywan <christian twotoasts de>
Date:   Thu Sep 3 11:30:12 2009 +0200

    Bug 584638 - Build of gtkupdateiconcache without NLS breaks
    
    Wrap textdomain calls in updateiconcache.c in NLS conditionals.

 gtk/updateiconcache.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c
index 02d0047..3b92701 100644
--- a/gtk/updateiconcache.c
+++ b/gtk/updateiconcache.c
@@ -1656,8 +1656,12 @@ main (int argc, char **argv)
   
   setlocale (LC_ALL, "");
 
+#ifdef ENABLE_NLS
   bindtextdomain (GETTEXT_PACKAGE, GTK_LOCALEDIR);
+#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+#endif
+#endif
 
   context = g_option_context_new ("ICONPATH");
   g_option_context_add_main_entries (context, args, GETTEXT_PACKAGE);



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