aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-iconv.c
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2002-09-18 05:44:31 +0800
committerMike Kestner <mkestner@src.gnome.org>2002-09-18 05:44:31 +0800
commit9b16cf644368cb3f73bcb3ace71e8f66fdb84cbb (patch)
tree3683c8f7f37c8e193716e2df277d6ffbacdcdc49 /e-util/e-iconv.c
parent85d6c111af2bd7b8c677c9c7191d9121ff486721 (diff)
downloadgsoc2013-evolution-9b16cf644368cb3f73bcb3ace71e8f66fdb84cbb.tar.gz
gsoc2013-evolution-9b16cf644368cb3f73bcb3ace71e8f66fdb84cbb.tar.zst
gsoc2013-evolution-9b16cf644368cb3f73bcb3ace71e8f66fdb84cbb.zip
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
Diffstat (limited to 'e-util/e-iconv.c')
-rw-r--r--e-util/e-iconv.c5
1 files changed, 3 insertions, 2 deletions
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);