diff --git a/src/xercesc/util/TransService.cpp b/src/xercesc/util/TransService.cpp index 15aa450b21366bb62e551c8c904b5def6dc296f8..c329b5693946200e0247ccfbb48de4d287539cd6 100644 --- a/src/xercesc/util/TransService.cpp +++ b/src/xercesc/util/TransService.cpp @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 1999-2001 The Apache Software Foundation. All rights + * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -492,9 +492,10 @@ void XMLTransService::initTransService() // // Add in our mappings for IBM037 with Euro update, i.e. IBM1140. It - // has no aliases + // has alias IBM01140, the one suggested by IANA // gMappings->put((void*)XMLUni::fgIBM1140EncodingString, new ENameMapFor<XMLIBM1140Transcoder>(XMLUni::fgIBM1140EncodingString)); + gMappings->put((void*)XMLUni::fgIBM1140EncodingString2, new ENameMapFor<XMLIBM1140Transcoder>(XMLUni::fgIBM1140EncodingString2)); // // Add in our mappings for Windows-1252. We don't have any aliases for diff --git a/src/xercesc/util/XMLUni.cpp b/src/xercesc/util/XMLUni.cpp index a90e468cdf6aa99279411cfcb3fd85c3f6f2ea27..13a8e872eeaa79bb2761e1432d7b53eff8553a37 100644 --- a/src/xercesc/util/XMLUni.cpp +++ b/src/xercesc/util/XMLUni.cpp @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 1999-2001 The Apache Software Foundation. All rights + * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -173,6 +173,11 @@ const XMLCh XMLUni::fgIBM1140EncodingString[] = chLatin_I, chLatin_B, chLatin_M, chDigit_1, chDigit_1, chDigit_4, chDigit_0, chNull }; +const XMLCh XMLUni::fgIBM1140EncodingString2[] = +{ + chLatin_I, chLatin_B, chLatin_M, chDigit_0, chDigit_1, chDigit_1, chDigit_4, chDigit_0, chNull +}; + const XMLCh XMLUni::fgIESString[] = { chLatin_I, chLatin_E, chLatin_S, chNull diff --git a/src/xercesc/util/XMLUni.hpp b/src/xercesc/util/XMLUni.hpp index 09a4d6641ed88a115d9bc33647b940f35945665c..110cf9f078f7c52712ecae968963c5b0542895e6 100644 --- a/src/xercesc/util/XMLUni.hpp +++ b/src/xercesc/util/XMLUni.hpp @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 1999-2001 The Apache Software Foundation. All rights + * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -100,6 +100,7 @@ public : static const XMLCh fgIBM037EncodingString[]; static const XMLCh fgIBM037EncodingString2[]; static const XMLCh fgIBM1140EncodingString[]; + static const XMLCh fgIBM1140EncodingString2[]; static const XMLCh fgIESString[]; static const XMLCh fgIDString[]; static const XMLCh fgIDRefString[];