Changeset 4963:5fc8c7cee1dd for imap

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
  • imap/utf7.c

    r4640 r4963  
    258258  { 
    259259    char *t = safe_strdup (*s); 
    260     if (!mutt_convert_string (&t, Charset, "UTF-8", 0)) 
     260    if (!mutt_convert_string (&t, Charset, "utf-8", 0)) 
    261261    { 
    262262      char *u7 = utf8_to_utf7 (t, strlen (t), NULL, 0); 
     
    273273  { 
    274274    char *t = utf7_to_utf8 (*s, strlen (*s), 0, 0); 
    275     if (t && !mutt_convert_string (&t, "UTF-8", Charset, 0)) 
     275    if (t && !mutt_convert_string (&t, "utf-8", Charset, 0)) 
    276276    { 
    277277      FREE (s);         /* __FREE_CHECKED__ */