Show
Ignore:
Timestamp:
2000-05-24 12:18:32 (8 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Make charset-hook work with an external iconv implementation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • charset.c

    r1851 r1861  
    8080  char tocode1[SHORT_STRING]; 
    8181  char fromcode1[SHORT_STRING]; 
     82  char *tmp; 
    8283 
    8384  mutt_canonical_charset (tocode1, sizeof (tocode1), tocode); 
     85  if ((tmp = mutt_charset_hook (tocode1))) 
     86    mutt_canonical_charset (tocode1, sizeof (tocode1), tmp); 
     87 
    8488  mutt_canonical_charset (fromcode1, sizeof (fromcode1), fromcode); 
     89  if ((tmp = mutt_charset_hook (fromcode1))) 
     90    mutt_canonical_charset (fromcode1, sizeof (fromcode1), tmp); 
     91 
    8592  return iconv_open (tocode1, fromcode1); 
    8693}