changeset 10098:fb4216714dac

[gaim-migrate @ 11120] This is better. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 14 Oct 2004 03:59:00 +0000
parents 158950e7996d
children c49cc5b818cf
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Thu Oct 14 03:44:42 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Thu Oct 14 03:59:00 2004 +0000
@@ -498,11 +498,10 @@
 	const gchar *charsetstr;
 	gsize msglen;
 
-	*charset = oscar_charset_check(from);
-
 	/* Attempt to send as ASCII */
-	if (*charset == AIM_CHARSET_ASCII) {
+	if (oscar_charset_check(from) == AIM_CHARSET_ASCII) {
 		*msg = g_convert(from, strlen(from), "ASCII", "UTF-8", NULL, &msglen, NULL);
+		*charset = AIM_CHARSET_ASCII;
 		*charsubset = 0x0000;
 		*msglen_int = msglen;
 		return;