Re: [Tracker] [Patch] Correct locales support



Laurent Aguerreche wrote:


Nautilus isn't affected.

If I use dbus-send, it works correctly since it uses printf() to print
result. printf() just sends data to STDOUT...

All tools that print results via STDOUT are affected if what they have
to print is not in ASCII.

It is a 'problem' with g_print() which tries to be smart.

okay so what is best solution?

(its not a problem with the data)


Should we use g_locale_from_utf8 before calling printf?

(we mustn't send non-locale stuff to an ordinary xterm as it could not handle it)


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.

So on anything that go into Tracker? And to get a correct output it has
to be reverted then.

I have standardised everything to be utf-8 so we do not convert back to locale by default. I will leave it to clients to convert as necessary.



I wonder if it may be interesting to ask point of view of some gnome (at
least Glib) hackers. Perhaps you could use your blog to ask for that and
at that time to talk about how Tracker goes more and more faster!  :-)


will do once next version is complete.

--
Mr Jamie McCracken
http://jamiemcc.livejournal.com/




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