comparison libpurple/protocols/irc/parse.c @ 17083:25ef7db38f28

More strcasecmp() replacements.
author Richard Laager <rlaager@wiktel.com>
date Mon, 14 May 2007 23:45:14 +0000
parents 4453f59c2035
children 82a02dbf2fa2
comparison
equal deleted inserted replaced
17082:7ade887fd3f6 17083:25ef7db38f28
262 for (i = 0; encodings[i] != NULL; i++) { 262 for (i = 0; encodings[i] != NULL; i++) {
263 charset = encodings[i]; 263 charset = encodings[i];
264 while (*charset == ' ') 264 while (*charset == ' ')
265 charset++; 265 charset++;
266 266
267 if (!strcasecmp("UTF-8", charset)) { 267 if (!g_ascii_strcasecmp("UTF-8", charset)) {
268 if (g_utf8_validate(string, -1, NULL)) 268 if (g_utf8_validate(string, -1, NULL))
269 utf8 = g_strdup(string); 269 utf8 = g_strdup(string);
270 } else { 270 } else {
271 utf8 = g_convert(string, -1, "UTF-8", charset, NULL, NULL, NULL); 271 utf8 = g_convert(string, -1, "UTF-8", charset, NULL, NULL, NULL);
272 } 272 }