Improved hublist decoding.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sat, 8 Apr 2006 11:47:44 +0000 (11:47 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sat, 8 Apr 2006 11:47:44 +0000 (11:47 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@595 959494ce-11ee-0310-bf91-de5d638817bd

clients/gtk2/main.c

index fc7c4fd..05a2a0b 100644 (file)
@@ -1338,12 +1338,16 @@ void pubhubfdcallback(gpointer data, gint source, GdkInputCondition condition)
                {
                    if((wbuf = icsmbstowcs(fields[i], DCCHARSET, NULL)) == NULL)
                    {
+                       /*
                        msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Could not decode hublist - aborting at this point: %s"), strerror(errno));
                        kill(pubhubproc, SIGINT);
                        break;
+                       */
+                       fields[i] = sstrdup(_("(Invalid character)"));
+                   } else {
+                       if((fields[i] = icwcstombs(wbuf, "UTF-8")) == NULL)
+                           break;
                    }
-                   if((fields[i] = icwcstombs(wbuf, "UTF-8")) == NULL)
-                       break;
                }
                if(i == 4)
                {