Show
Ignore:
Timestamp:
2007-03-06 18:13:14 (21 months ago)
Author:
Alain Bench <veronatif@…>
Branch:
HEAD
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • charset.h

    r4932 r4963  
    5050char *mutt_get_default_charset (); 
    5151 
    52 #define M_ICONV_HOOK_FROM 1 
    53 #define M_ICONV_HOOK_TO   2 
     52/* flags for charset.c:mutt_convert_string(), fgetconv_open(), and 
     53 * mutt_iconv_open(). Note that applying charset-hooks to tocode is 
     54 * never needed, and sometimes hurts: Hence there is no M_ICONV_HOOK_TO 
     55 * flag. 
     56 */ 
     57#define M_ICONV_HOOK_FROM 1     /* apply charset-hooks to fromcode */ 
    5458 
    5559#endif /* _CHARSET_H */