[tracker/parser-unicode-libs-review] tracker_parser_unaccent_utf16be_word: make it a no-op if no unac



commit e7ab0199e9908317cdc43d704b021eeba8ea41a0
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Wed May 19 12:12:00 2010 +0200

    tracker_parser_unaccent_utf16be_word: make it a no-op if no unac

 src/libtracker-fts/tracker-parser-utils.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-parser-utils.c b/src/libtracker-fts/tracker-parser-utils.c
index e6c8521..9c24bd0 100644
--- a/src/libtracker-fts/tracker-parser-utils.c
+++ b/src/libtracker-fts/tracker-parser-utils.c
@@ -40,6 +40,7 @@ tracker_parser_unaccent_utf16be_word (const gchar *string,
                                       gsize        ilength,
                                       gsize        *p_olength)
 {
+#ifdef HAVE_UNAC
 	GError *error = NULL;
 	gchar *unaccented_str = NULL;
 	gchar *str_utf8 = NULL;
@@ -73,6 +74,9 @@ tracker_parser_unaccent_utf16be_word (const gchar *string,
 
 	*p_olength = utf8_len;
 	return str_utf8;
+#else
+	return NULL;
+#endif
 }
 
 



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