Show
Ignore:
Timestamp:
2008-08-18 01:20:40 (3 months ago)
Author:
Rocco Rutte <pdmef@…>
Branch:
HEAD
Message:

Validate charset names for all charset options.
Validation is either done against mutt's table of IANA assigned names or local iconv
implementation (based on the assumption that iconv_open(charset,charset) fails if charset
is unknown to the implementation). Closes #1668.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • charset.h

    r4963 r5477  
    5757#define M_ICONV_HOOK_FROM 1     /* apply charset-hooks to fromcode */ 
    5858 
     59/* Check if given character set is valid (either officially assigned or 
     60 * known to local iconv implementation). If strict is non-zero, check 
     61 * against iconv only. Returns 0 if known and negative otherwise. 
     62 */ 
     63int mutt_check_charset (const char *s, int strict); 
     64 
    5965#endif /* _CHARSET_H */