Applications taking data that's supposed to be UTF8 from outside, and passing around to other components in DBus need to validate the data so they're sure they're passing valid UTF8.
There's an utility function to do so in glib, but at the moment it's not publicly visible, and there are some ambiguities over how to model the public API for it. See the discussion here:
Until such a function is available to glib, we could add it to telepathy-glib. Since both libraries are under LGPL, we can just copy the code verbatim, and expose it.
Here's my branch that does this:
> + * This method is a verbatim copy of glib's internal
> + * g_utf8_make_valid() function, and will be deprecated as
_g_utf8_make_valid. Other than that, r+
You forgot to add the new function name to the gtk-doc sections file.
Simon, Jonny: thanks, fixed and merged.