[tracker/tracker-0.10] libtracker-data: Use libmeegotouch ICU data if available
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-data: Use libmeegotouch ICU data if available
- Date: Thu, 16 Jun 2011 16:10:34 +0000 (UTC)
commit 75098f14a825092b2fbbebd579413c6234132691
Author: JÃrg Billeter <j bitron ch>
Date: Fri Jun 10 16:31:38 2011 +0200
libtracker-data: Use libmeegotouch ICU data if available
Fixes NB#261635.
src/libtracker-data/tracker-collation.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-collation.c b/src/libtracker-data/tracker-collation.c
index e0ff2d0..308f5ee 100644
--- a/src/libtracker-data/tracker-collation.c
+++ b/src/libtracker-data/tracker-collation.c
@@ -39,6 +39,7 @@
#include <unistr.h>
#elif HAVE_LIBICU
#include <unicode/ucol.h>
+#include <unicode/utypes.h>
#endif
/* If string lenth less than this value, allocating from the stack */
@@ -107,6 +108,11 @@ tracker_collation_init (void)
/* Get locale! */
locale = tracker_locale_get (TRACKER_LOCALE_COLLATE);
+#ifdef HAVE_MEEGOTOUCH
+ /* libmeegotouch ships modified ICU data */
+ u_setDataDirectory ("/usr/share/meegotouch/icu");
+#endif
+
g_debug ("[ICU collation] Initializing collator for locale '%s'", locale);
collator = ucol_open (locale, &status);
if (!collator) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]