apply patch for 27447 from Matt Avery for a bug in the solaris iconv

2002-09-17  Mike Kestner  <mkestner@ximian.com>

	* 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
This commit is contained in:
Mike Kestner
2002-09-17 21:44:31 +00:00
committed by Mike Kestner
parent 85d6c111af
commit 9b16cf6443

View File

@ -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);