From 65014a74aa55209e8e5b65549be26645dabd7cba Mon Sep 17 00:00:00 2001 From: 2 Date: Wed, 3 Oct 2001 00:12:49 +0000 Subject: Change to camel_charset_iconv_open/close. 2001-10-02 * 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 --- camel/camel-pgp-context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camel/camel-pgp-context.c') diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c index 9a5fa74e0e..180a1a10e2 100644 --- a/camel/camel-pgp-context.c +++ b/camel/camel-pgp-context.c @@ -1003,7 +1003,7 @@ pgp_verify (CamelCipherContext *ctx, CamelCipherHash hash, CamelStream *istream, if (!locale) locale = "iso-8859-1"; - cd = iconv_open ("UTF-8", locale); + cd = camel_charset_iconv_open ("UTF-8", locale); if (cd != (iconv_t) -1) { const char *inbuf; int ret; @@ -1013,7 +1013,7 @@ pgp_verify (CamelCipherContext *ctx, CamelCipherHash hash, CamelStream *istream, if (ret >= 0) { iconv (cd, NULL, 0, &outbuf, &outlen); } - iconv_close (cd); + camel_charset_iconv_close (cd); *outbuf = '\0'; } else { -- cgit