X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/14c29200cb58d3c4a0830265f2433849781858d0..5f2a574d6c8989bc7f90612704e3e5f255b5cb58:/charset.h diff --git a/charset.h b/charset.h index ab5f062..e52ce38 100644 --- a/charset.h +++ b/charset.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1999-2000 Thomas Roessler + * Copyright (C) 1999-2003 Thomas Roessler * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -47,7 +47,7 @@ char * fgetconvs (char *, size_t, FGETCONV *); void fgetconv_close (FGETCONV **); void mutt_set_langinfo_charset (void); -char *mutt_get_default_charset (); +char *mutt_get_default_charset (void); /* flags for charset.c:mutt_convert_string(), fgetconv_open(), and * mutt_iconv_open(). Note that applying charset-hooks to tocode is @@ -56,4 +56,10 @@ char *mutt_get_default_charset (); */ #define M_ICONV_HOOK_FROM 1 /* apply charset-hooks to fromcode */ +/* Check if given character set is valid (either officially assigned or + * known to local iconv implementation). If strict is non-zero, check + * against iconv only. Returns 0 if known and negative otherwise. + */ +int mutt_check_charset (const char *s, int strict); + #endif /* _CHARSET_H */