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: https://bugzilla.gnome.org/show_bug.cgi?id=610969 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: http://git.collabora.co.uk/?p=user/ptlo/telepathy-glib/.git;a=shortlog;h=refs/heads/utf8-validation
> + * 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.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.