[tracker] tracker_parser_unaccent_utf16be_word: make it a no-op if no unac
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker_parser_unaccent_utf16be_word: make it a no-op if no unac
- Date: Thu, 20 May 2010 14:20:02 +0000 (UTC)
commit 44aab37abe447c311fd3fa0961f173d93814ab9b
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]