# HG changeset patch # User Daniel Atallah # Date 1213845243 0 # Node ID bf7ce96294025b42a45367330bea33d46c3a6a23 # Parent fb7a42a097894e466b7d01bf288e07da482d65ee applied changes from a5e7a62db1d43009f4ff463b7fe67ff3a7275a78 through 2e34cc5b5c98162e2a36c51a9eff26fcaa55dcf2 applied changes from 2e34cc5b5c98162e2a36c51a9eff26fcaa55dcf2 through f27cf27abac3307baeb823ac405c3c09bf5f057e diff -r fb7a42a09789 -r bf7ce9629402 ChangeLog --- a/ChangeLog Thu Jun 19 03:13:30 2008 +0000 +++ b/ChangeLog Thu Jun 19 03:14:03 2008 +0000 @@ -1,6 +1,9 @@ Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul version 2.4.3 (??/??/2008): + libpurple: + * Yahoo! Japan now uses UTF-8, matching the behavior of official clients + and restoring compatibility with the web messenger (Yusuke Odate) version 2.x.x: libpurple: diff -r fb7a42a09789 -r bf7ce9629402 libpurple/protocols/yahoo/util.c --- a/libpurple/protocols/yahoo/util.c Thu Jun 19 03:13:30 2008 +0000 +++ b/libpurple/protocols/yahoo/util.c Thu Jun 19 03:14:03 2008 +0000 @@ -114,18 +114,15 @@ char *ret; const char *to_codeset; - if (yd->jp && utf8 && *utf8) - *utf8 = FALSE; + if (yd->jp) + return g_strdup(str); if (utf8 && *utf8) /* FIXME: maybe don't use utf8 if it'll fit in latin1 */ return g_strdup(str); - if (yd->jp) - to_codeset = "SHIFT_JIS"; - else - to_codeset = purple_account_get_string(purple_connection_get_account(gc), "local_charset", "ISO-8859-1"); + 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, NULL); if (ret) return ret; else