Re: [Tracker] [Patch] Correct locales support
- From: Jamie McCracken <jamiemcc blueyonder co uk>
- To: Laurent Aguerreche <laurent aguerreche free fr>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] [Patch] Correct locales support
- Date: Sun, 27 Aug 2006 12:06:41 +0100
Jamie McCracken wrote:
Laurent Aguerreche wrote:
Hello,
in my tests I saw some issues with locales support in clients. For
instance if I search something I can see something like
/home/laurent/Musique/T?t?
instead of
/home/laurent/Musique/TÃtÃ
It seems that g_print() tries to be smart about locales handling but
needs a sort of initialization before.
To test I called g_get_charset() that replied ANSI_X3.4-1968 (it is
ASCII) instead of UTF-8...
okay this is a bug. All strings need to be utf-8.
Can you let me know where this bug occurs and does it affect all the
tracker tools including nautilus?
The right fix would be to make sure all strings are encoded as utf-8. If
locale specific strings are used it could crash tracker!
So we should be using g_locale_to_utf8() on anything locale specific
such as indexing filenames or their metadata and their text contents.
--
Mr Jamie McCracken
http://jamiemcc.livejournal.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]