comparison src/blist.c @ 7108:6faeeecab0dc

[gaim-migrate @ 7673] Put the rest of util.[ch] into namespaces and sectioned off the functions. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 01 Oct 2003 07:15:53 +0000
parents 9220c7490cd1
children 7bee4be16385
comparison
equal deleted inserted replaced
7107:9220c7490cd1 7108:6faeeecab0dc
1474 do { 1474 do {
1475 if (c == NULL) 1475 if (c == NULL)
1476 break; 1476 break;
1477 if (*c == 'g') { 1477 if (*c == 'g') {
1478 char *utf8 = NULL; 1478 char *utf8 = NULL;
1479 utf8 = gaim_try_conv_to_utf8(c + 2); 1479 utf8 = gaim_utf8_try_convert(c + 2);
1480 if (utf8 == NULL) { 1480 if (utf8 == NULL) {
1481 g_strlcpy(current, _("Invalid Groupname"), sizeof(current)); 1481 g_strlcpy(current, _("Invalid Groupname"), sizeof(current));
1482 } else { 1482 } else {
1483 g_strlcpy(current, utf8, sizeof(current)); 1483 g_strlcpy(current, utf8, sizeof(current));
1484 g_free(utf8); 1484 g_free(utf8);
1495 *a++ = '\0'; /* nul the : */ 1495 *a++ = '\0'; /* nul the : */
1496 } 1496 }
1497 1497
1498 g_strlcpy(nm, c + 2, sizeof(nm)); 1498 g_strlcpy(nm, c + 2, sizeof(nm));
1499 if (a) { 1499 if (a) {
1500 utf8 = gaim_try_conv_to_utf8(a); 1500 utf8 = gaim_utf8_try_convert(a);
1501 if (utf8 == NULL) { 1501 if (utf8 == NULL) {
1502 gaim_debug(GAIM_DEBUG_ERROR, "toc blist", 1502 gaim_debug(GAIM_DEBUG_ERROR, "toc blist",
1503 "Failed to convert alias for " 1503 "Failed to convert alias for "
1504 "'%s' to UTF-8\n", nm); 1504 "'%s' to UTF-8\n", nm);
1505 } 1505 }