Skip to content
Snippets Groups Projects
Commit 0193b875 authored by PeiYong Zhang's avatar PeiYong Zhang
Browse files

[Bug#880] patch to PlatformUtils:init()/term() and related. from Mark Weaver

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173155 13f79535-47bb-0310-9956-ffa450edef68
parent 6b77ad5c
No related branches found
No related tags found
No related merge requests found
......@@ -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()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment