--- a/htdocs/oscar-icq-utf8-hack.diff Sat Oct 25 08:21:11 2003 -0400
+++ b/htdocs/oscar-icq-utf8-hack.diff Sat Oct 25 14:06:05 2003 -0400
@@ -1,41 +1,11 @@
-Index: src/protocols/oscar/oscar.c
-===================================================================
-RCS file: /cvsroot/gaim/gaim/src/protocols/oscar/oscar.c,v
-retrieving revision 1.485
---- src/protocols/oscar/oscar.c 22 Oct 2003 03:32:21 -0000 1.485
-+++ src/protocols/oscar/oscar.c 24 Oct 2003 22:05:31 -0000
-- buddy = gaim_buddy_new(gc->account, curitem->name, alias_utf8);
-- if (!(g = gaim_find_group(gname_utf8 ? gname_utf8 : _("Orphans")))) {
-- g = gaim_group_new(gname_utf8 ? gname_utf8 : _("Orphans"));
-- gaim_blist_add_group(g, NULL);
-+ /* cheesy hack to avoid startup crashes when adding buddies */
-+ if ( isdigit(curitem->name[0]) && !isdigit(curitem->name[strlen(curitem->name) - 1]) )
-+ /* duplicated contact from new ICQ protocol, with a funky trailing char */
-+ buddy = gaim_buddy_new(gc->account, curitem->name, alias_utf8);
-+ if (!(g = gaim_find_group(gname_utf8 ? gname_utf8 : _("Orphans")))) {
-+ g = gaim_group_new(gname_utf8 ? gname_utf8 : _("Orphans"));
-+ gaim_blist_add_group(g, NULL);
+diff -ruN gaim-0.71/src/protocols/oscar/oscar.c gaim-0.71-fixed/src/protocols/oscar/oscar.c +--- gaim-0.71/src/protocols/oscar/oscar.c 2003-10-06 00:15:21.000000000 -0400 ++++ gaim-0.71-fixed/src/protocols/oscar/oscar.c 2003-10-25 14:02:01.000000000 -0400
-- gaim_debug(GAIM_DEBUG_INFO, "oscar",
-- "ssi: adding buddy %s to group %s to local list\n", curitem->name, gname_utf8 ? gname_utf8 : _("Orphans"));
-- gaim_blist_add_buddy(buddy, NULL, g, NULL);
-+ gaim_debug(GAIM_DEBUG_INFO, "oscar",
-+ "ssi: adding buddy %s to group %s to local list\n", curitem->name, gname_utf8 ? gname_utf8 : _("Orphans"));
-+ gaim_blist_add_buddy(buddy, NULL, g, NULL);
+ /* Add from server list to local list */ + for (curitem=sess->ssi.local; curitem; curitem=curitem->next) { ++ if ((curitem->name == NULL) || (g_utf8_validate(curitem->name, -1, NULL))) + switch (curitem->type) { + case 0x0000: { /* Buddy */