# HG changeset patch # User Jeffrey Connelly # Date 1187058890 0 # Node ID 0651af21ceeef4e108bc1948f35dac4b9c28e5ee # Parent abb5b6ec99a65f2175fcf27d3afc82c16233d3fc# Parent 258a721f6ae9b6bd5142e1b14bebee1cc17a2007 merge of '8a35b0d36dc6b8c63f5f5e8f499be65866ffcf39' and 'e9490223467e841836eda77692ace171fd4f632e' diff -r 258a721f6ae9 -r 0651af21ceee libpurple/protocols/myspace/myspace.c --- a/libpurple/protocols/myspace/myspace.c Mon Aug 13 06:00:06 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Tue Aug 14 02:34:50 2007 +0000 @@ -1252,19 +1252,19 @@ * Currently, the 's' value will be overwritten when b/i/u is nested * within another one, and only the inner-most formatting will be * applied to the text. */ - if (!strcmp(root->name, "root")) { + if (!purple_utf8_strcasecmp(root->name, "root")) { *begin = g_strdup(""); *end = g_strdup(""); - } else if (!strcmp(root->name, "b") || !strcmp(root->name, "B")) { + } else if (!purple_utf8_strcasecmp(root->name, "b")) { *begin = g_strdup_printf("", MSIM_TEXT_BOLD); *end = g_strdup(""); - } else if (!strcmp(root->name, "i") || !strcmp(root->name, "I")) { + } else if (!purple_utf8_strcasecmp(root->name, "i")) { *begin = g_strdup_printf("", MSIM_TEXT_ITALIC); *end = g_strdup(""); - } else if (!strcmp(root->name, "u") || !strcmp(root->name, "U")) { + } else if (!purple_utf8_strcasecmp(root->name, "u")) { *begin = g_strdup_printf("", MSIM_TEXT_UNDERLINE); *end = g_strdup(""); - } else if (!strcmp(root->name, "a") || !strcmp(root->name, "A")) { + } else if (!purple_utf8_strcasecmp(root->name, "a")) { const gchar *href, *link_text; href = xmlnode_get_attrib(root, "href"); @@ -1300,7 +1300,7 @@ root->child = NULL; *end = g_strdup(""); - } else if (!strcmp(root->name, "font") || !strcmp(root->name, "FONT")) { + } else if (!purple_utf8_strcasecmp(root->name, "font")) { const gchar *size; const gchar *face;