auriemma    01/02/07 14:06:20

  Modified:    c/src/ICUBridge ICUBridge.cpp
  Log:
  Problem with charater types on AIX.
  
  Revision  Changes    Path
  1.11      +9 -1      xml-xalan/c/src/ICUBridge/ICUBridge.cpp
  
  Index: ICUBridge.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/ICUBridge/ICUBridge.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ICUBridge.cpp     2001/02/05 21:44:16     1.10
  +++ ICUBridge.cpp     2001/02/07 22:06:15     1.11
  @@ -132,7 +132,11 @@
   
                        doCopyData(theString, theLength, theBuffer);
   
  +#if U_SIZEOF_WCHAR_T==2
  +                     return UnicodeString((wchar_t*)&theBuffer[0], 
theLength);
  +#else
                        return UnicodeString(&theBuffer[0], theLength);
  +#endif
                }
                else
                {
  @@ -140,9 +144,13 @@
                        UCharVectorType         theBuffer;
   
                        // Resize the buffer appropriately...
  -                     theBuffer.resize(theLength);
  +                     theBuffer.resize(theLength);            
   
  +#if U_SIZEOF_WCHAR_T==2
  +                     doCopyData(theString, theLength, 
(XalanDOMChar*)&theBuffer[0]);
  +#else
                        doCopyData(theString, theLength, &theBuffer[0]);
  +#endif
   
                        assert(theLength == theBuffer.size());
   
  
  
  

Reply via email to