Commit 0f9b3a2d authored by Jody Goldberg's avatar Jody Goldberg

remove a pile of custom iconv code in XL plugin

parent 9c2fdec5
...@@ -11,6 +11,7 @@ Jody: ...@@ -11,6 +11,7 @@ Jody:
* Rewrite plan perfect import, significantly more useful now. * Rewrite plan perfect import, significantly more useful now.
Includes some format transfer and uses the wordperfect Includes some format transfer and uses the wordperfect
charset map from kword (thanks to Ariya Hidayat) charset map from kword (thanks to Ariya Hidayat)
* Cull out a pile of special iconv code in favour of glib
Jukka: Jukka:
* Solver improvements: * Solver improvements:
......
...@@ -269,11 +269,6 @@ fi ...@@ -269,11 +269,6 @@ fi
dnl check for complete locale implementation dnl check for complete locale implementation
AC_CHECK_HEADERS(langinfo.h) AC_CHECK_HEADERS(langinfo.h)
dnl we need iconv for translating to/from locale's charset when
dnl reading/writing Excel files
AC_CHECK_HEADERS(iconv.h)
dnl iswprint/iswspace are sometimes in wctype.h dnl iswprint/iswspace are sometimes in wctype.h
AC_CHECK_HEADERS(wctype.h) AC_CHECK_HEADERS(wctype.h)
......
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* /*
* utils.c: Various utility routines that do not depend on the GUI of Gnumeric * utils.c: Various utility routines that do not depend on the GUI of Gnumeric
* *
...@@ -890,3 +891,13 @@ gnm_extension_pointer (char const * path) ...@@ -890,3 +891,13 @@ gnm_extension_pointer (char const * path)
return path + strlen(path); return path + strlen(path);
} }
/**
* gnm_iconv_close : A utility wrapper to safely clos an iconv handle
* @handle :
**/
void
gnm_iconv_close (GIConv handle)
{
if (handle != NULL && handle != ((GIConv)-1))
g_iconv_close (handle);
}
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <sys/types.h> #include <sys/types.h>
char const *gnm_extension_pointer (char const * path); char const *gnm_extension_pointer (char const * path);
void gnm_iconv_close (GIConv handle);
void gnumeric_time_counter_push (void); void gnumeric_time_counter_push (void);
gdouble gnumeric_time_counter_pop (void); gdouble gnumeric_time_counter_pop (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment