Mercurial > pidgin.yaz
diff libpurple/util.h @ 28453:c9c038529f38
Hmm, g_unichar_isgraph is too restrictive in the characters allowed (it munges \t). Change purple_utf8_strip_unprintables to simply remove ASCII control characters instead.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 27 Aug 2009 23:59:30 +0000 |
parents | 8c41a23e6b44 |
children | b4cbcb427e7d 63cb8c4f3c66 |
line wrap: on
line diff
--- a/libpurple/util.h Wed Aug 26 05:56:20 2009 +0000 +++ b/libpurple/util.h Thu Aug 27 23:59:30 2009 +0000 @@ -1286,16 +1286,14 @@ /** * Removes unprintable characters from a UTF-8 string. These characters * (in particular low-ASCII characters) are invalid in XML 1.0 and thus - * are not allowed in XMPP and are rejected by libxml2 by default. This - * function uses g_unichar_isprint to determine what characters should - * be stripped. The returned string must be freed by the caller. + * are not allowed in XMPP and are rejected by libxml2 by default. + * + * The returned string must be freed by the caller. * * @param str A valid UTF-8 string. * * @return A newly allocated UTF-8 string without the unprintable characters. * @since 2.6.0 - * - * @see g_unichar_isprint */ gchar *purple_utf8_strip_unprintables(const gchar *str);