From ac091e954da440e6229c5ab3368188e0cde34023 Mon Sep 17 00:00:00 2001 From: 5 Date: Fri, 26 Oct 2001 00:35:20 +0000 Subject: Bumped version to 0.15.99.4 for e-iconv changes. 2001-10-25 * configure.in: Bumped version to 0.15.99.4 for e-iconv changes. * gal/widgets/e-unicode.c (e_utf8_from_iconv_string_sized): " (e_utf8_to_iconv_string_sized): " (e_utf8_from_gtk_string_sized): " (e_utf8_to_gtk_string_sized): " * gal/widgets/e-font.c (e_font_to_native): s/iconv/e_iconv/ * gal/util/e-iconv.c (e_iconv): Implement a wrapper for iconv() to make sure we link with and execute the right iconv to match the right iconv_open. (BLAH!) svn path=/trunk/; revision=14111 --- e-util/e-iconv.c | 5 +++++ e-util/e-iconv.h | 1 + 2 files changed, 6 insertions(+) (limited to 'e-util') diff --git a/e-util/e-iconv.c b/e-util/e-iconv.c index c22c9915b2..bd85a7f599 100644 --- a/e-util/e-iconv.c +++ b/e-util/e-iconv.c @@ -419,6 +419,11 @@ iconv_t e_iconv_open(const char *oto, const char *ofrom) return ip; } +size_t e_iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft, char ** outbuf, size_t *outbytesleft) +{ + return iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft); +} + void e_iconv_close(iconv_t ip) { diff --git a/e-util/e-iconv.h b/e-util/e-iconv.h index dee9ce3573..9bdeba8e30 100644 --- a/e-util/e-iconv.h +++ b/e-util/e-iconv.h @@ -32,6 +32,7 @@ extern "C" { const char *e_iconv_charset_name(const char *charset); iconv_t e_iconv_open(const char *oto, const char *ofrom); +size_t e_iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft, char ** outbuf, size_t *outbytesleft); void e_iconv_close(iconv_t ip); const char *e_iconv_locale_charset(void); -- cgit v1.2.3