From 9b16cf644368cb3f73bcb3ace71e8f66fdb84cbb Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Tue, 17 Sep 2002 21:44:31 +0000 Subject: apply patch for 27447 from Matt Avery for a bug in the solaris iconv 2002-09-17 Mike Kestner * gal/util/e-iconv.c : apply patch for 27447 from Matt Avery for a bug in the solaris iconv implementation. svn path=/trunk/; revision=18100 --- e-util/e-iconv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'e-util/e-iconv.c') diff --git a/e-util/e-iconv.c b/e-util/e-iconv.c index 7f18a5b43e..64c0508cd5 100644 --- a/e-util/e-iconv.c +++ b/e-util/e-iconv.c @@ -412,10 +412,11 @@ iconv_t e_iconv_open(const char *oto, const char *ofrom) /* work around some broken iconv implementations * that die if the length arguments are NULL */ - size_t buggy_iconv = 0; + size_t buggy_iconv_len = 0; + gchar *buggy_iconv_buf = NULL; /* resets the converter */ - iconv(ip, NULL, &buggy_iconv, NULL, &buggy_iconv); + iconv(ip, &buggy_iconv_buf, &buggy_iconv_len, &buggy_iconv_buf, &buggy_iconv_len); in->busy = TRUE; e_dlist_remove((EDListNode *)in); e_dlist_addhead(&ic->open, (EDListNode *)in); -- cgit v1.2.3