diff options
author | Alain Bench <veronatif@free.fr> | 2007-03-06 18:13:14 -0800 |
---|---|---|
committer | Alain Bench <veronatif@free.fr> | 2007-03-06 18:13:14 -0800 |
commit | bbf8fcd960369f06837d4b809b62b419b3ad1437 (patch) | |
tree | 77d939928ff62409bf14e6dbe7d5a1e82308cfa5 /charset.h | |
parent | 4ff78eaef510bd001bd6e517a06e5ec80f37a11b (diff) |
Remove buggy usage of M_ICONV_HOOK_TO flag in mutt_idna.c:mutt_idna_to_local().
Wipe unwanted code depending on M_ICONV_HOOK_TO in charset.c:mutt_iconv_open().
Totally wipe M_ICONV_HOOK_TO symbol.
Remove misusages of M_ICONV_HOOK_FROM flag in:
- crypt-gpgme.c:print_utf8().
- mutt_idna.c:mutt_idna_to_local() and mutt_local_to_idna().
- pgp.c:pgp_traditional_encryptsign().
Document usage policy of M_ICONV_HOOK_FROM flag.
Cosmetic downcasing of some constant charset names (utf-8, euc-jp) for consistency.
Correction of a typo in the "iso8859-5" charset name.
Diffstat (limited to 'charset.h')
-rw-r--r-- | charset.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -49,7 +49,11 @@ void fgetconv_close (FGETCONV **); void mutt_set_langinfo_charset (void); char *mutt_get_default_charset (); -#define M_ICONV_HOOK_FROM 1 -#define M_ICONV_HOOK_TO 2 +/* flags for charset.c:mutt_convert_string(), fgetconv_open(), and + * mutt_iconv_open(). Note that applying charset-hooks to tocode is + * never needed, and sometimes hurts: Hence there is no M_ICONV_HOOK_TO + * flag. + */ +#define M_ICONV_HOOK_FROM 1 /* apply charset-hooks to fromcode */ #endif /* _CHARSET_H */ |