Mercurial > pidgin.yaz
diff libpurple/protocols/yahoo/util.c @ 27754:754a82f1371b
half baked fixes for file transfer.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 17 Dec 2007 08:20:42 +0000 |
parents | 26f55eb6ab59 |
children | 9a60b9fab0ea |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/util.c Mon Dec 17 07:48:27 2007 +0000 +++ b/libpurple/protocols/yahoo/util.c Mon Dec 17 08:20:42 2007 +0000 @@ -63,7 +63,8 @@ else to_codeset = purple_account_get_string(purple_connection_get_account(gc), "local_charset", "ISO-8859-1"); - strtmp = sanitize_utf((char *)str, strlen((char *)str), &newlen); +// strtmp = sanitize_utf((char *)str, strlen((char *)str), &newlen); + strtmp = g_strdup(str); ret = g_convert_with_fallback(strtmp, strlen(strtmp), to_codeset, "UTF-8", "?", NULL, NULL, NULL); @@ -111,7 +112,8 @@ if (ret){ tmp = ret; - ret = botch_utf(ret, strlen(ret), &newlen); +// ret = botch_utf(tmp, strlen(tmp), &newlen); + ret = g_strdup(tmp); g_free(tmp); return ret; }