You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jb...@apache.org on 2001/05/22 22:40:29 UTC

cvs commit: xml-xerces/c/src/util/Platforms/MacOS MacOSPlatformUtils.cpp

jberry      01/05/22 13:40:29

  Modified:    c/src/util/Platforms/MacOS MacOSPlatformUtils.cpp
  Log:
  Check for existance of MacOS Unicode Converter routines prior to instanciating our transcoder object; Xerces will thus panic, rather than crash, if they don't exist.
  
  Revision  Changes    Path
  1.20      +9 -2      xml-xerces/c/src/util/Platforms/MacOS/MacOSPlatformUtils.cpp
  
  Index: MacOSPlatformUtils.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/MacOS/MacOSPlatformUtils.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- MacOSPlatformUtils.cpp	2001/04/16 17:50:22	1.19
  +++ MacOSPlatformUtils.cpp	2001/05/22 20:40:24	1.20
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: MacOSPlatformUtils.cpp,v 1.19 2001/04/16 17:50:22 jberry Exp $
  + * $Id: MacOSPlatformUtils.cpp,v 1.20 2001/05/22 20:40:24 jberry Exp $
    */
   
   
  @@ -843,10 +843,17 @@
   XMLPlatformUtils::makeTransService()
   {
   #if defined(XML_USE_MACOS_UNICODECONVERTER)
  -	return new MacOSUnicodeConverter;
  +    if (MacOSUnicodeConverter::IsMacOSUnicodeConverterSupported())
  +        return new MacOSUnicodeConverter;
   #else
       #error You must provide a transcoding service implementation
   #endif
  +
  +    //	If we got here it's because we didn't detect the Mac OS
  +    //	Unicode Converter or Text Encoding Converter routines
  +    //	that we require to function properly. Xerces will not
  +    //	survive this condition.
  +    return NULL;
   }
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org