sound-juicer r2369 - in trunk: . tests



Author: hadess
Date: Fri Nov 28 13:10:15 2008
New Revision: 2369
URL: http://svn.gnome.org/viewvc/sound-juicer?rev=2369&view=rev

Log:
2008-11-28  Bastien Nocera  <hadess hadess net>

	* tests/Makefile.am:
	* tests/mb-test.c (main): Call i18n functions so UTF-8
	output works as expected (See
	http://bugzilla.gnome.org/show_bug.cgi?id=559383#c4 )



Modified:
   trunk/ChangeLog
   trunk/tests/Makefile.am
   trunk/tests/mb-test.c

Modified: trunk/tests/Makefile.am
==============================================================================
--- trunk/tests/Makefile.am	(original)
+++ trunk/tests/Makefile.am	Fri Nov 28 13:10:15 2008
@@ -6,6 +6,7 @@
 mb_test_CPPFLAGS = \
 	-I$(top_srcdir)/libjuicer \
 	-I$(top_srcdir)/src \
+	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
 	$(DISABLE_DEPRECATED) \
 	$(AM_CPPFLAGS)
 

Modified: trunk/tests/mb-test.c
==============================================================================
--- trunk/tests/mb-test.c	(original)
+++ trunk/tests/mb-test.c	Fri Nov 28 13:10:15 2008
@@ -1,4 +1,6 @@
+#include "config.h"
 #include <glib.h>
+#include <glib/gi18n.h>
 #include <stdlib.h>
 #include "sj-structures.h"
 #include "sj-metadata.h"
@@ -89,6 +91,10 @@
   GMainLoop *loop;
   GError *error = NULL;
 
+  bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+  textdomain (GETTEXT_PACKAGE);
+
   g_type_init ();
   g_thread_init (NULL);
   



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