comparison libpurple/protocols/irc/parse.c @ 17091:4453f59c2035

strcasecmp is post-C89, so use the glib equivalent
author Ethan Blanton <elb@pidgin.im>
date Mon, 14 May 2007 23:11:30 +0000
parents c417cc8403e3
children 25ef7db38f28
comparison
equal deleted inserted replaced
17090:8d7e2cd32a9a 17091:4453f59c2035
225 const gchar *enclist; 225 const gchar *enclist;
226 226
227 enclist = purple_account_get_string(irc->account, "encoding", IRC_DEFAULT_CHARSET); 227 enclist = purple_account_get_string(irc->account, "encoding", IRC_DEFAULT_CHARSET);
228 encodings = g_strsplit(enclist, ",", 2); 228 encodings = g_strsplit(enclist, ",", 2);
229 229
230 if (encodings[0] == NULL || !strcasecmp("UTF-8", encodings[0])) { 230 if (encodings[0] == NULL || !g_ascii_strcasecmp("UTF-8", encodings[0])) {
231 g_strfreev(encodings); 231 g_strfreev(encodings);
232 return g_strdup(string); 232 return g_strdup(string);
233 } 233 }
234 234
235 utf8 = g_convert(string, strlen(string), encodings[0], "UTF-8", NULL, NULL, &err); 235 utf8 = g_convert(string, strlen(string), encodings[0], "UTF-8", NULL, NULL, &err);