Re: [Tracker] Inconsistency with tracker-search-tool results



On 11/23/09 16:55, Martyn Russell wrote:
On 23/11/09 08:24, Abhijit Nath wrote:
On 11/23/09 13:22, Martyn Russell wrote:
On 06/11/09 06:29, Abhijit Nath wrote:
Hello,

Hi,

I have recently started using tracker (0.6.95).
I'm facing one issue with tracker-search and tracker-search-tool with
files which has accented characters in filenames.
tracker-search(-tool) when used with ISO8859 locales doesn't return
right results.
In result field, it return only files that don't content accents. But
nautilus is able to show the file names.
I have checked in the source code and it seems,
tracker_db_result_set_iter_next() returns FALSE in case of accented file
names.

Hmm. I don't suppose you're using the tracker-0.6 branch are you?

Yes. I'm using tracker-0.6.95 branch.

You mean the tag right? There is no branch with that name. Only "tracker-0.6".

Sorry ... Actually the tarball version of tracker is 0.6.95. But it is basically tracker-0.6.
Is it a correct behavior? If not, should i raise a defect in bugzilla?

I would like to see if this is fixed in the tracker-0.6 branch already
before doing that.

It is not fixed in 0.6.95 branch and earlier. I have checked the source
code and it seems, trackerd reads the files (with ISO8859-1 characters
in it) correctly but in file tracker-crawler.c it uses g_utf8_validate
() to validate the files.
And it get failed there. I have removed the checks but still it is not
showing proper result. So there should be some other issue also
(probably sqlite).

Hmm, well, if it is not correct UTF-8, then all bets are off.
Our databases expect UTF-8 only i'm afraid.


Ok...Is there any plan to support non utf-8  in tracker in coming releases?
Actually if i build tracker with the tarball version 0.6.6 (before the sqlite implementation, i guess), tracker support non utf-8 characters (with some issues).

Thanks,
Abhijit



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