+/****************************************************************************/
+/* charset functions */
+/****************************************************************************/
+
+extern char *Charset;
+extern int Charset_is_utf8;
+extern wchar_t CharsetReplacement;
+
+void charset_initialize(void);
+void charset_canonicalize(char *, ssize_t, const char *);
+int charset_is_utf8(const char *s);
+int charset_is_us_ascii(const char *s);
+
+const char *charset_getfirst(const char *);
+
+
+/****************************************************************************/
+/* iconv-line functions */
+/****************************************************************************/
+
+#define MUTT_ICONV_ERROR ((iconv_t)(-1))
+
+#ifdef HAVE_ICONV_H
+# include <iconv.h>
+
+static inline ssize_t
+my_iconv(iconv_t ict, const char **in, ssize_t *il, char **out, ssize_t *ol) {
+ return iconv(ict, (char **)in, (size_t*)il, out, (size_t*)ol);
+}