[tracker/tracker-0.8] do not escape display_name, it is already encoded in UTF-8
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] do not escape display_name, it is already encoded in UTF-8
- Date: Thu, 27 May 2010 11:26:00 +0000 (UTC)
commit 62923760381ed25ea691a136848acb477442ba14
Author: Frederic Crozat <fcrozat mandriva com>
Date: Fri May 21 13:50:10 2010 +0200
do not escape display_name, it is already encoded in UTF-8
https://bugzilla.gnome.org/show_bug.cgi?id=619280
src/libtracker-miner/tracker-miner-fs.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 195cca1..b6bc4c4 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1651,7 +1651,7 @@ item_move (TrackerMinerFS *fs,
GFile *file,
GFile *source_file)
{
- gchar *uri, *source_uri, *escaped_filename;
+ gchar *uri, *source_uri;
GFileInfo *file_info;
GString *sparql;
RecursiveMoveData move_data;
@@ -1745,8 +1745,6 @@ item_move (TrackerMinerFS *fs,
"} ",
source_iri, source_iri, source_iri);
- escaped_filename = g_strescape (g_file_info_get_display_name (file_info), NULL);
-
g_string_append_printf (sparql,
"INSERT INTO <%s> {"
" <%s> nfo:fileName \"%s\" ; "
@@ -1754,11 +1752,9 @@ item_move (TrackerMinerFS *fs,
" nie:isStoredAs <%s> "
"} ",
source_iri, source_iri,
- escaped_filename, uri,
+ g_file_info_get_display_name (file_info), uri,
source_iri);
- g_free (escaped_filename);
-
move_data.main_loop = g_main_loop_new (NULL, FALSE);
move_data.sparql = sparql;
move_data.source_uri = source_uri;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]