[tracker/rss-enclosures] utils, mtp-dummy: locale initialization was missing



commit edc5e112663fbfb7a3a3b539c177cc2226d80105
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Fri Oct 15 17:12:24 2010 +0200

    utils, mtp-dummy: locale initialization was missing

 utils/mtp/mtp-dummy.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/utils/mtp/mtp-dummy.c b/utils/mtp/mtp-dummy.c
index 07774ed..816a955 100644
--- a/utils/mtp/mtp-dummy.c
+++ b/utils/mtp/mtp-dummy.c
@@ -19,6 +19,7 @@
 
 #include <stdio.h>
 #include <errno.h>
+#include <locale.h>
 #include <glib.h>
 #include <tracker-sparql.h>
 
@@ -530,6 +531,9 @@ int main (int argc, char **argv)
 	g_thread_init (NULL);
 	g_type_init ();
 
+	/* Initialize locale support! */
+	setlocale (LC_ALL, "");
+
 	/* Initialize context */
 	if (!context_init (argc, argv)) {
 		g_printerr ("Couldn't setup context, exiting.");



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