[tracker] Fix encoding unit test to the initialize locale system



commit 55cd90786585b3c6c54a5f991e4d1ae0c360ecb8
Author: Philip Van Hoof <philip codeminded be>
Date:   Wed May 4 12:04:33 2011 +0200

    Fix encoding unit test to the initialize locale system

 tests/libtracker-extract/tracker-encoding-test.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-extract/tracker-encoding-test.c b/tests/libtracker-extract/tracker-encoding-test.c
index 59e712b..4ce49e5 100644
--- a/tests/libtracker-extract/tracker-encoding-test.c
+++ b/tests/libtracker-extract/tracker-encoding-test.c
@@ -22,6 +22,7 @@
 
 #include <glib-object.h>
 #include <libtracker-extract/tracker-encoding.h>
+#include <libtracker-common/tracker-locale.h>
 
 static void
 test_encoding_guessing ()
@@ -58,8 +59,10 @@ main (int argc, char **argv)
 	g_type_init ();
 	g_test_init (&argc, &argv, NULL);
 
+	tracker_locale_init ();
 	g_test_add_func ("/libtracker-extract/tracker-encoding/encoding_guessing",
 	                 test_encoding_guessing);
+	tracker_locale_shutdown ();
 
 	return g_test_run ();
 }



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