[tracker] Fixes GB#612873, tracker cannot extract oasis files if the filename has spaces in it.



commit ec321f1dd4caee43ac274de0c9608154c88843ee
Author: 0brahim �zgür <oerisen metu edu tr>
Date:   Mon Mar 15 10:34:56 2010 +0000

    Fixes GB#612873, tracker cannot extract oasis files if the filename has spaces in it.

 src/tracker-extract/tracker-extract-oasis.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-oasis.c b/src/tracker-extract/tracker-extract-oasis.c
index 6ca0275..4a753e9 100644
--- a/src/tracker-extract/tracker-extract-oasis.c
+++ b/src/tracker-extract/tracker-extract-oasis.c
@@ -73,7 +73,7 @@ extract_content (const gchar *path,
 	gchar *command, *output, *text;
 	GError *error = NULL;
 
-	command = g_strdup_printf ("odt2txt --encoding=utf-8 %s", path);
+	command = g_strdup_printf ("odt2txt --encoding=utf-8 '%s'", path);
 	g_debug ("Executing command:'%s'", command);
 
 	if (!g_spawn_command_line_sync (command, &output, NULL, NULL, &error)) {



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