# HG changeset patch # User Mark Doliner # Date 1103386641 0 # Node ID 3cf69ffdc25ebab560f6b1dfcb33a7b9cafe41ed # Parent b4b9dabdd7c7614bd7a698cf25b4bcb1b33768df [gaim-migrate @ 11626] Compare case-insensitively. It couldn't hurt and it might help. committer: Tailor Script diff -r b4b9dabdd7c7 -r 3cf69ffdc25e src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Fri Dec 17 23:30:38 2004 +0000 +++ b/src/protocols/oscar/oscar.c Sat Dec 18 16:17:21 2004 +0000 @@ -377,14 +377,13 @@ if ((encoding == NULL) || encoding[0] == '\0') { gaim_debug_info("oscar", "Empty encoding, assuming UTF-8\n"); - - } else if (!strcmp(encoding, "iso-8859-1")) { + } else if (!strcasecmp(encoding, "iso-8859-1")) { utf8 = g_convert(text, textlen, "UTF-8", "iso-8859-1", NULL, NULL, NULL); - } else if (!strcmp(encoding, "ISO-8859-1-Windows-3.1-Latin-1")) { + } else if (!strcasecmp(encoding, "ISO-8859-1-Windows-3.1-Latin-1")) { utf8 = g_convert(text, textlen, "UTF-8", "Windows-1252", NULL, NULL, NULL); - } else if (!strcmp(encoding, "unicode-2-0")) { + } else if (!strcasecmp(encoding, "unicode-2-0")) { utf8 = g_convert(text, textlen, "UTF-8", "UCS-2BE", NULL, NULL, NULL); - } else if (strcmp(encoding, "us-ascii") && strcmp(encoding, "utf-8")) { + } else if (strcasecmp(encoding, "us-ascii") && strcmp(encoding, "utf-8")) { gaim_debug_warning("oscar", "Unrecognized character encoding \"%s\", " "attempting to convert to UTF-8 anyway\n", encoding); utf8 = g_convert(text, textlen, "UTF-8", encoding, NULL, NULL, NULL);