From: fredrik Date: Sat, 8 Apr 2006 11:47:44 +0000 (+0000) Subject: Improved hublist decoding. X-Git-Tag: 0.1~41 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=efea2eaf5cb56bc2ecabb58880620134eef80b8d Improved hublist decoding. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@595 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/clients/gtk2/main.c b/clients/gtk2/main.c index fc7c4fd..05a2a0b 100644 --- a/clients/gtk2/main.c +++ b/clients/gtk2/main.c @@ -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) {