changeset 27808:77b9245a2a99

make purple_plugin_oscar_convert_to_best_encoding() skip conversion to iso-8859-1 on windows environment.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 23 Mar 2008 09:18:14 +0000
parents aceb6c9734a4
children ebdbac0a51cf
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.