Gives ability to read without problems RSS in russian. As soon as pr2nntp was born, this patch exists here for snownews fans only. --- conversions.c.orig Sun Jun 5 12:50:22 2005 +++ conversions.c Wed Feb 22 12:28:30 2006 @@ -81,11 +81,21 @@ outbuf = malloc (outbytesleft+1); outbuf_first = outbuf; - +/* if (iconv (cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft) == -1) { free(outbuf_first); iconv_close(cd); return NULL; + } +*/ + /* force iconv to convert inbuf to the end regardless of possible + invalid multibyte sequence (just skip it) */ + while (inbytesleft > 0) { + if (iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft) == -1) { + if (errno == E2BIG) { + break; + } else inbuf++; + } } *outbuf = 0;