# HG changeset patch # User Yoshiki Yazawa # Date 1206263894 0 # Node ID 77b9245a2a99705c3e60fc72ba57bc80acf2c411 # Parent aceb6c9734a4001989f71e991a9a47b76504a765 make purple_plugin_oscar_convert_to_best_encoding() skip conversion to iso-8859-1 on windows environment. diff -r aceb6c9734a4 -r 77b9245a2a99 libpurple/protocols/oscar/oscar.c --- a/libpurple/protocols/oscar/oscar.c Sun Mar 23 08:43:00 2008 +0000 +++ b/libpurple/protocols/oscar/oscar.c Sun Mar 23 09:18:14 2008 +0000 @@ -551,6 +551,10 @@ * XXX - We need a way to only attempt to convert if we KNOW "from" * can be converted to "charsetstr" */ +#ifndef _WIN32 + /* nosuke reported that this portion caused unexpected + * conversion from utf-8 fullwidth tilde/numbers/alphabets to + * halfwidth ones on windows environment. --yaz */ *msg = g_convert(from, -1, charsetstr, "UTF-8", NULL, &msglen, NULL); if (*msg != NULL) { *charset = AIM_CHARSET_CUSTOM; @@ -558,6 +562,7 @@ *msglen_int = msglen; return; } +#endif /* * Nothing else worked, so send as UTF-16BE.