* More changes required to be able to do embedded message/rfc822 and still be
[citadel.git] / webcit / rss.c
index 0e71987f2401c8a6e20fdb8d06ec1512ac1bf189..fe4a5d7a01306348c076761e7c21c33c1f364cbd 100644 (file)
@@ -232,10 +232,10 @@ void display_rss(char *roomname, char *request_method)
 
                /* Set up a character set conversion if we need to */
 #ifdef HAVE_ICONV
-               if (strcasecmp(charset, "us-ascii") && strcasecmp(charset, "utf-8")) {
+               if (strcasecmp(charset, "us-ascii") && strcasecmp(charset, "utf-8") && strcasecmp(charset, "") ) {
                        ic = iconv_open("UTF-8", charset);
                        if (ic == (iconv_t)(-1)) {
-                               lprintf(5, "iconv_open() failed: %s\n", strerror(errno));
+                               lprintf(5, "%s:%d iconv_open() failed: %s\n", __FILE__, __LINE__, strerror(errno));
                                goto ENDBODY;
                        }
                }