[Bug 306401] Problem receiving ICQ messages containing non-ASCII letters

Alex Richardson arichardson.kde at googlemail.com
Tue Oct 16 19:05:01 BST 2012


https://bugs.kde.org/show_bug.cgi?id=306401

--- Comment #1 from Alex Richardson <arichardson.kde at googlemail.com> ---
I looked into the source of libpurple and found this:

else if (charset == AIM_CHARSET_LATIN_1) {
    if ((sourcebn != NULL) && oscar_util_valid_name_icq(sourcebn))
        charsetstr1 = purple_account_get_string(account, "encoding",
OSCAR_DEFAULT_CUSTOM_ENCODING);
    else
        charsetstr1 = "ISO-8859-1";
    charsetstr2 = "UTF-8";
}

I.e. the message is a Latin-1 message (set in the protocol header). But it
never tries ISO-8859-1 since it uses our custom encoding instead (which is
UTF-8).
Seems like a bug in libpurple to me, it uses UTF-8 as a fallback encoding for a
Latin-1 message and otherwise just the user encoding.

I am not sure what sourcebn is, I didn't dig that deep into their code, but at
least on my system the first branch (with user encoding) is always taken.
I think it should always have ISO-8859-1 since this is the expected encoding
(and is sent by the official ICQ client) at least as a fallback instead of
UTF-8.

This can be worked around by using setting "ISO-8859-1" as the encoding in the
accounts KCM, but I will also report a bug to libpurple.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list