]> code.citadel.org Git - citadel.git/blobdiff - webcit/rss.c
Created ctdl_iconv_open() wrapper around iconv_open()
[citadel.git] / webcit / rss.c
index ba1116432db90c338a5a35dac9638e4803a73f30..6a962559a27b9b6f95ead77cc68ac6dd9096f76b 100644 (file)
@@ -3,6 +3,7 @@
  */
 /**
  * \defgroup RssRooms Generate some RSS for our rooms.
+ * \ingroup WebcitHttpServerRSS
  */
 /*@{*/
 #include "webcit.h"
@@ -245,7 +246,7 @@ 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") && strcasecmp(charset, "") ) {
-                       ic = iconv_open("UTF-8", charset);
+                       ic = ctdl_iconv_open("UTF-8", charset);
                        if (ic == (iconv_t)(-1)) {
                                lprintf(5, "%s:%d iconv_open() failed: %s\n",
                                        __FILE__, __LINE__, strerror(errno));
@@ -328,7 +329,7 @@ void display_rss(char *roomname, char *request_method)
                /** HTML is fun, but we've got to strip it first */
                else if (!strcasecmp(content_type, "text/html")) {
                        wprintf("      <description><![CDATA[");
-                       output_html(charset);
+                       output_html(charset, 0);
                        wprintf("]]></description>\n");
                }