#include <lib-lib/lib-lib.h>
-#ifdef HAVE_LANGINFO_CODESET
+#ifdef HAVE_LANGINFO_H
# include <langinfo.h>
#endif
static char *charset_init(void)
{
const char *res = "iso-8859-1";
-#ifdef HAVE_LANGINFO_CODESET
+#ifdef HAVE_LANGINFO_H
char buff[STRING];
char buff2[STRING];
res = buff2;
}
#endif
-#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
bind_textdomain_codeset(PACKAGE, res);
-#endif
return m_strdup(res);
}
void charset_hook(rx_t local, const string_t alias) {
rx_set_template(local, alias);
- rx_list_append(&charset_hooks, local);
+ rx_list_add2(&charset_hooks, &local);
RETURN();
};
void iconv_hook(rx_t local, const string_t alias) {
rx_set_template(local, alias);
- rx_list_append(&iconv_hooks, local);
+ rx_list_add2(&iconv_hooks, &local);
RETURN();
};
};