Skip to content
Snippets Groups Projects
Commit 5a2bb034 authored by David Abram Cargill's avatar David Abram Cargill
Browse files

Allow ICU to be used for transcoding and casing, according to environment...

Allow ICU to be used for transcoding and casing, according to environment variable setting on 390.  Fix from Steve Dulin.


git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@176321 13f79535-47bb-0310-9956-ffa450edef68
parent a82a1eec
No related branches found
No related tags found
No related merge requests found
......@@ -164,10 +164,6 @@ DBGPRINTF1("remove converter\n");
Uniconv390TransService::Uniconv390TransService()
{
fCaseConverter = new uniconvcaseconverter;
fCaseConverter->ftoupperhand=UNICONV_NOHANDLE;
fCaseConverter->ftolowerhand=UNICONV_NOHANDLE;
char * myenviron = getenv("_IXM_FORCE_CONVERSION");
gForceTranscode = NO_FORCE;
if ( !strcmp(myenviron,"USE_ICU") )
......@@ -176,6 +172,19 @@ Uniconv390TransService::Uniconv390TransService()
gForceTranscode = MUST_USE_UNICONV;
DBGPRINTF3("FORCE PARM=%s %d\n",myenviron,gForceTranscode);
// If we are forcing ICU to be used fro transcoding then we also should
// force it to be used for case conversions.
if (gForceTranscode == MUST_USE_ICU) {
fCaseConverter = new uniconvcaseconverter;
fCaseConverter->ftoupperhand=UNICONV_ERROR;
fCaseConverter->ftolowerhand=UNICONV_ERROR;
}
else {
fCaseConverter = new uniconvcaseconverter;
fCaseConverter->ftoupperhand=UNICONV_NOHANDLE;
fCaseConverter->ftolowerhand=UNICONV_NOHANDLE;
}
fICUService = new ICUTransService;
gViewTranscoder = false;
......
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