diff options
author | 2 <NotZed@Ximian.com> | 2001-10-03 08:12:49 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-10-03 08:12:49 +0800 |
commit | 65014a74aa55209e8e5b65549be26645dabd7cba (patch) | |
tree | b64e6409bde5e0b0310df1928b30fd3d85c831cd /camel/camel-mime-part-utils.c | |
parent | 7d2487975feeee0be69890e92fe3eca609fe25c3 (diff) | |
download | gsoc2013-evolution-65014a74aa55209e8e5b65549be26645dabd7cba.tar.gz gsoc2013-evolution-65014a74aa55209e8e5b65549be26645dabd7cba.tar.zst gsoc2013-evolution-65014a74aa55209e8e5b65549be26645dabd7cba.zip |
Change to camel_charset_iconv_open/close.
2001-10-02 <NotZed@Ximian.com>
* camel-sasl-digest-md5.c (digest_response): Change to
camel_charset_iconv_open/close.
* camel-pgp-context.c (pgp_verify): Change to
camel_charset_iconv_open/close.
* camel-mime-part-utils.c (convert_buffer): Change to
camel_charset_iconv_open().
* camel-mime-filter-charset.c
(camel_mime_filter_charset_new_convert, finalise): Change to
camel_charset_iconv_open, etc.
* camel-mime-utils.c: Use the camel_charset_iconv_open/close()
functions to open/close it.
* camel-charset-map.c (camel_charset_iconv_open): New function,
wrap iconv_open, so we can cache ic's.
(camel_charset_iconv_close): Likewise for close.
(camel_charset_map_init,shutdown): Init/free iconv cache.
svn path=/trunk/; revision=13361
Diffstat (limited to 'camel/camel-mime-part-utils.c')
-rw-r--r-- | camel/camel-mime-part-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c index ba9bf07d5f..8314330f21 100644 --- a/camel/camel-mime-part-utils.c +++ b/camel/camel-mime-part-utils.c @@ -105,7 +105,7 @@ static GByteArray *convert_buffer(GByteArray *in, const char *to, const char *fr d(printf("converting buffer from %s to %s: '%.*s'\n", from, to, (int)in->len, in->data)); - ic = iconv_open(to, from); + ic = camel_charset_iconv_open(to, from); if (ic == (iconv_t) -1) { g_warning("Cannot convert from '%s' to '%s': %s", from, to, strerror(errno)); return NULL; @@ -146,7 +146,7 @@ static GByteArray *convert_buffer(GByteArray *in, const char *to, const char *fr break; } while (1); - iconv_close(ic); + camel_charset_iconv_close(ic); return out; } |