diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-12 07:56:31 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-12 07:56:31 +0800 |
commit | 768ef5c60bd59daa227910c68f4b829db480d6ac (patch) | |
tree | 1f2a0d1de14e8c6f09898152438232a3b0a14336 /camel/camel-mime-filter-charset.c | |
parent | 188ec0d0254b5f1e6fa1f98e70f5ad0990184490 (diff) | |
download | gsoc2013-evolution-768ef5c60bd59daa227910c68f4b829db480d6ac.tar gsoc2013-evolution-768ef5c60bd59daa227910c68f4b829db480d6ac.tar.gz gsoc2013-evolution-768ef5c60bd59daa227910c68f4b829db480d6ac.tar.bz2 gsoc2013-evolution-768ef5c60bd59daa227910c68f4b829db480d6ac.tar.lz gsoc2013-evolution-768ef5c60bd59daa227910c68f4b829db480d6ac.tar.xz gsoc2013-evolution-768ef5c60bd59daa227910c68f4b829db480d6ac.tar.zst gsoc2013-evolution-768ef5c60bd59daa227910c68f4b829db480d6ac.zip |
New function to extract a meta-tag charset value if it exists.
2001-07-11 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-part-utils.c (extract_metatag_charset): New function
to extract a meta-tag charset value if it exists.
(simple_data_wrapper_construct_from_parser): Along the same lines
as the code I previously ripped out, but this time use the
mime-parser's seek ability to help us along. Currently I read up
to a 2k buffer size - this is probably overkill, 1k is probably
plenty.
* camel-mime-utils.c (html_meta_param_list_decode): When we get to
an `=', we must skip past it before trying to grab the param
value. duh.
svn path=/trunk/; revision=11021
Diffstat (limited to 'camel/camel-mime-filter-charset.c')
-rw-r--r-- | camel/camel-mime-filter-charset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-mime-filter-charset.c b/camel/camel-mime-filter-charset.c index 34c80c50f9..808e4064a7 100644 --- a/camel/camel-mime-filter-charset.c +++ b/camel/camel-mime-filter-charset.c @@ -221,14 +221,14 @@ camel_mime_filter_charset_init (CamelMimeFilterCharset *obj) CamelMimeFilterCharset * camel_mime_filter_charset_new (void) { - CamelMimeFilterCharset *new = CAMEL_MIME_FILTER_CHARSET ( camel_object_new (camel_mime_filter_charset_get_type ())); + CamelMimeFilterCharset *new = CAMEL_MIME_FILTER_CHARSET (camel_object_new (camel_mime_filter_charset_get_type ())); return new; } CamelMimeFilterCharset * camel_mime_filter_charset_new_convert(const char *from_charset, const char *to_charset) { - CamelMimeFilterCharset *new = CAMEL_MIME_FILTER_CHARSET ( camel_object_new (camel_mime_filter_charset_get_type ())); + CamelMimeFilterCharset *new = CAMEL_MIME_FILTER_CHARSET (camel_object_new (camel_mime_filter_charset_get_type ())); new->ic = iconv_open(to_charset, from_charset); if (new->ic == (iconv_t) -1) { |