[tracker] libtracker-fts: ICU cannot handle complex locale descriptions
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-fts: ICU cannot handle complex locale descriptions
- Date: Sat, 21 Jul 2012 12:25:52 +0000 (UTC)
commit 48713ba26af38a15a97fc7ebb0828cd287ef2447
Author: Alexandre Rostovtsev <tetromino gentoo org>
Date: Fri Jul 20 10:46:33 2012 -0400
libtracker-fts: ICU cannot handle complex locale descriptions
ubrk_open expects the name of just a single locale (e.g. "en_US.UTF-8"),
not the full definition of your various locale variables and their
values as returned by glibc's setlocale(LC_ALL, NULL).
Instead, limit ourselves to LC_CTYPE, since after all, that's all we
need to determine word boundaries.
Fixes GB#675660.
src/libtracker-fts/tracker-parser-libicu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-parser-libicu.c b/src/libtracker-fts/tracker-parser-libicu.c
index 7388f69..69f75ed 100644
--- a/src/libtracker-fts/tracker-parser-libicu.c
+++ b/src/libtracker-fts/tracker-parser-libicu.c
@@ -676,7 +676,7 @@ tracker_parser_reset (TrackerParser *parser,
/* Open word-break iterator */
parser->bi = ubrk_open(UBRK_WORD,
- setlocale (LC_ALL, NULL),
+ setlocale (LC_CTYPE, NULL),
parser->utxt,
parser->utxt_size,
&error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]