diff --git a/src/util/Transcoders/Iconv400/iconv_util.cpp b/src/util/Transcoders/Iconv400/iconv_util.cpp
index 253c4bd4037bf0f70ca915ff73438045b4184bef..5e125e71e6a180460a585d82dd9908d0897b7113 100644
--- a/src/util/Transcoders/Iconv400/iconv_util.cpp
+++ b/src/util/Transcoders/Iconv400/iconv_util.cpp
@@ -56,6 +56,9 @@
 
 /**
  * $Log$
+ * Revision 1.2  2001/10/24 14:06:59  peiyongz
+ * [Bug#880] patch to PlatformUtils:init()/term() and related. from Mark Weaver
+ *
  * Revision 1.1  2001/06/25 16:19:56  tng
  * Rename iconv_util.h to iconv_util.hpp.  AS400 changes by Linda Swan.
  *
@@ -84,6 +87,18 @@ UConverterSharedData *getSharedConverterData(char *Descriptor);
 #define defaultConverter (_defaultConverter==NULL)?_defaultConverter=ucnv_open(NULL, &gErr):_defaultConverter
 
 
+/* Cleans up the default converter if it has been allocated.
+   This is a little messy, but I know the code well enough to
+   do anything neater.
+ */
+void cleanupDefaultConverter()
+{
+	if (_defaultConverter != NULL) {
+		ucnv_close(_defaultConverter);
+		_defaultConverter = NULL;
+	}
+}
+
 static char DEFAULT_CONVERTER_NAME[60] = "";
 const char* iconv_getDefaultCodepage()
 {