of the environment variables LANG, LC_ALL or LC_CTYPE is set,
and will revert to the ISO-8859-* range if they aren't.
+--without-wc-funcs
+ by default Mutt uses the functions mbrtowc(), wctomb() and
+ wcwidth() provided by the system, when they are available.
+ With this option Mutt will use its own version of those
+ functions, which should work with 8-bit display charsets, UTF-8,
+ euc-jp or shift_jis, even if the system doesn't normally support
+ those multibyte charsets.
+
+ If you find Mutt is displaying non-ascii characters as octal
+ escape sequences (e.g. \243), even though you have set LANG and
+ LC_CTYPE correctly, then you might find you can solve the problem
+ with either or both of --enable-locales-fix and --without-wc-funcs.
+
--with-exec-shell=SHELL
on some versions of unix, /bin/sh has a bug that makes using emacs
with mutt very difficult. If you have the problem that whenever
Charset = safe_strdup ("iso-8859-1");
}
+#else
+
+void mutt_set_langinfo_charset (void)
+{
+ Charset = safe_strdup ("iso-8859-1");
+}
+
#endif
void mutt_canonical_charset (char *dest, size_t dlen, const char *name)
int fgetconv (FGETCONV *);
void fgetconv_close (FGETCONV *);
-#ifdef HAVE_LANGINFO_CODESET
void mutt_set_langinfo_charset (void);
-#endif
#endif /* _CHARSET_H */
FREE (&token.data);
}
-#ifdef HAVE_LANGINFO_CODESET
mutt_set_langinfo_charset ();
-#else
- Charset = safe_strdup ("iso-8859-1");
-#endif
-
mutt_set_charset (Charset);