diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-20 05:00:27 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-20 05:00:27 +0800 |
commit | 8a56749aa6d8544544e75a79971144fb0b29fd81 (patch) | |
tree | 9027f438482c02fffb787fb8b5edc3a2111311b8 /camel/camel-charset-map.h | |
parent | 31fbb7d1dfdec64631a10e05726f0a7b787cb2b7 (diff) | |
download | gsoc2013-evolution-8a56749aa6d8544544e75a79971144fb0b29fd81.tar gsoc2013-evolution-8a56749aa6d8544544e75a79971144fb0b29fd81.tar.gz gsoc2013-evolution-8a56749aa6d8544544e75a79971144fb0b29fd81.tar.bz2 gsoc2013-evolution-8a56749aa6d8544544e75a79971144fb0b29fd81.tar.lz gsoc2013-evolution-8a56749aa6d8544544e75a79971144fb0b29fd81.tar.xz gsoc2013-evolution-8a56749aa6d8544544e75a79971144fb0b29fd81.tar.zst gsoc2013-evolution-8a56749aa6d8544544e75a79971144fb0b29fd81.zip |
Remove my iso8859-1 -> iso-8859-1 hack and use
2001-07-19 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (rfc2047_decode_word): Remove my iso8859-1 ->
iso-8859-1 hack and use camel_charset_get_iconv_friendly_name()
instead.
(rfc2184_decode): Use camel_charset_get_iconv_friendly_name()
* camel.c (camel_init): Call camel_charset_map_init().
* camel-charset-map.c (camel_charset_map_init): New function to
initialize the charset-equivalent lookup table. To be called by
camel_init().
(camel_charset_get_iconv_friendly_name): New function to try and
convert a charset into something that iconv is more likely to
accept.
svn path=/trunk/; revision=11235
Diffstat (limited to 'camel/camel-charset-map.h')
-rw-r--r-- | camel/camel-charset-map.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/camel/camel-charset-map.h b/camel/camel-charset-map.h index 54d62f8f1e..47b3cc0cab 100644 --- a/camel/camel-charset-map.h +++ b/camel/camel-charset-map.h @@ -28,6 +28,8 @@ struct _CamelCharset { int level; }; +void camel_charset_map_init (void); + void camel_charset_init(CamelCharset *); void camel_charset_step(CamelCharset *, const char *in, int len); const char *camel_charset_best_name(CamelCharset *); @@ -37,4 +39,6 @@ const char *camel_charset_best(const char *in, int len); char *camel_charset_locale_name (void); +const char *camel_charset_get_iconv_friendly_name (const char *name); + #endif /* ! _CAMEL_CHARSET_MAP_H */ |