--- a/libpurple/protocols/yahoo/util.c Sat Jan 18 15:19:11 2014 -0800
+++ b/libpurple/protocols/yahoo/util.c Sat Jan 18 16:30:55 2014 -0800
@@ -132,6 +132,7 @@
YahooData *yd = gc->proto_data;
@@ -140,12 +141,22 @@
to_codeset = purple_account_get_string(purple_connection_get_account(gc), "local_charset", "ISO-8859-1");
- ret = g_convert_with_fallback(str, -1, to_codeset, "UTF-8", "?", NULL, NULL, NULL);
+ ret = g_convert_with_fallback(str, -1, to_codeset, "UTF-8", "?", NULL, NULL, &error); + purple_debug_error("yahoo", "Could not convert %s from UTF-8 to " + "%s: %d - %s\n", str ? str : "(null)", to_codeset, + error->message ? error->message : "(null)"); + purple_debug_error("yahoo", "Could not convert %s from UTF-8 to " + "%s: unkown error\n", str ? str : "(null)", to_codeset);
@@ -161,6 +172,7 @@
YahooData *yd = gc->proto_data;
const char *from_codeset;
if (g_utf8_validate(str, -1, NULL))
@@ -174,12 +186,22 @@
from_codeset = purple_account_get_string(purple_connection_get_account(gc), "local_charset", "ISO-8859-1");
- ret = g_convert_with_fallback(str, -1, "UTF-8", from_codeset, NULL, NULL, NULL, NULL);
+ ret = g_convert_with_fallback(str, -1, "UTF-8", from_codeset, NULL, NULL, NULL, &error); + purple_debug_error("yahoo", "Could not convert %s from %s to " + "UTF-8: %d - %s\n", str ? str : "(null)", from_codeset, + error->code, error->message ? error->message : "(null)"); + purple_debug_error("yahoo", "Could not convert %s from %s to " + "UTF-8: unkown error\n", str ? str : "(null)",
char *yahoo_convert_to_numeric(const char *str)