From efea2eaf5cb56bc2ecabb58880620134eef80b8d Mon Sep 17 00:00:00 2001 From: fredrik Date: Sat, 8 Apr 2006 11:47:44 +0000 Subject: [PATCH] Improved hublist decoding. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@595 959494ce-11ee-0310-bf91-de5d638817bd --- clients/gtk2/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) { -- 2.11.0