[tracker] libtracker-data: Use libmeegotouch ICU data if available
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Use libmeegotouch ICU data if available
- Date: Tue, 14 Jun 2011 10:38:09 +0000 (UTC)
commit c6c1dee28d0ec62d986a0acda47a4dff7a71e711
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]