You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by ji...@apache.org on 2004/04/14 20:08:43 UTC

[jira] Created: (XERCESC-1193) BUG with the spanish acute on linux but not on solaris (from Bugzilla#28384)

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESC-1193

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESC-1193
    Summary: BUG with the spanish acute on linux but not on solaris (from Bugzilla#28384)
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Xerces-C++
 Components: 
             DOM
   Versions:
             2.4.0

   Assignee: 
   Reporter: Shane Curcuru

    Created: Wed, 14 Apr 2004 11:07 AM
    Updated: Wed, 14 Apr 2004 11:07 AM
Environment: 2.6.3 i686 GNU/Linux, but NOT on solaris

Description:
(Xercen: manually copied from Bugzilla#28384; please contact original poster jmf@abysal.com for details -curcuru)

There is a possible bug in Xerces-C 2.4.0 on linux platforms. This doesn't occur with solaris.

The next small program code demonstrates the problem:

#include <stdio.h>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/framework/MemBufInputSource.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>

const XMLCh proot[] = { 'r', 'o', 'o', 't', '\0' };

static const char *xml_buff =
"<?xml version='1.0' encoding='ISO-8859-1' ?><root>AB´BA</root>";

using namespace xercesc;

int main( int argc, char *argv[] )
{
   XMLPlatformUtils::Initialize( "es_ES" );
   MemBufInputSource *memDoc =
   new MemBufInputSource( (XMLByte *) xml_buff, strlen( xml_buff ), "tmp.xml", 
false );

   XercesDOMParser *parser = new XercesDOMParser;
   parser->parse( *memDoc );
   DOMDocument *doc = parser->adoptDocument();
   delete parser;
   delete memDoc;
   DOMNodeList *dnl = doc->getElementsByTagName( proot );
   DOMNode *dn = dnl->item(0);
   DOMText *dt = (DOMText *) dn->getFirstChild();
   char *ptr = XMLString::transcode( dt->getNodeValue() );
   printf( "Value: [%s]\n", ptr );
   XMLString::release( &ptr );
   doc->release();
   XMLPlatformUtils::Terminate();
   return 0;
}

The following is erroneous output when the platform is 'Linux 2.6.3 i686 GNU/Linux' and compiled with 'gcc 3.3.3 Debian':

Value: []

The following is a correct example output with SunOS sds.intranet.abysal 5.8 Generic_108528-29 sun4u sparc SUNW,Ultra-4:

Value: [AB´BA]

Thanks and best regards


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XERCESC-1193) BUG with the spanish acute on linux but not on solaris (from Bugzilla#28384)

Posted by ji...@apache.org.
The following comment has been added to this issue:

     Author: John Dorney
    Created: Fri, 28 May 2004 8:39 AM
       Body:
I was having a similar problem on linux.  I tracked the problem down to the native Transcoder for linux.  Since you are only using iso8859-1 characters you can just specify the IconvGNU transcoder to get around the problem.  Rerun your runConfigure to rebuild your make envirnment with the -tIconvGNU argument instead of -tnative.  Then rebuild the xerces library.  This should fix your problem.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/XERCESC-1193?page=comments#action_35773

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESC-1193

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESC-1193
    Summary: BUG with the spanish acute on linux but not on solaris (from Bugzilla#28384)
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Xerces-C++
 Components: 
             DOM
   Versions:
             2.4.0

   Assignee: 
   Reporter: Shane Curcuru

    Created: Wed, 14 Apr 2004 11:07 AM
    Updated: Fri, 28 May 2004 8:39 AM
Environment: 2.6.3 i686 GNU/Linux, but NOT on solaris

Description:
(Xercen: manually copied from Bugzilla#28384; please contact original poster jmf@abysal.com for details -curcuru)

There is a possible bug in Xerces-C 2.4.0 on linux platforms. This doesn't occur with solaris.

The next small program code demonstrates the problem:

#include <stdio.h>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/framework/MemBufInputSource.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>

const XMLCh proot[] = { 'r', 'o', 'o', 't', '\0' };

static const char *xml_buff =
"<?xml version='1.0' encoding='ISO-8859-1' ?><root>AB´BA</root>";

using namespace xercesc;

int main( int argc, char *argv[] )
{
   XMLPlatformUtils::Initialize( "es_ES" );
   MemBufInputSource *memDoc =
   new MemBufInputSource( (XMLByte *) xml_buff, strlen( xml_buff ), "tmp.xml", 
false );

   XercesDOMParser *parser = new XercesDOMParser;
   parser->parse( *memDoc );
   DOMDocument *doc = parser->adoptDocument();
   delete parser;
   delete memDoc;
   DOMNodeList *dnl = doc->getElementsByTagName( proot );
   DOMNode *dn = dnl->item(0);
   DOMText *dt = (DOMText *) dn->getFirstChild();
   char *ptr = XMLString::transcode( dt->getNodeValue() );
   printf( "Value: [%s]\n", ptr );
   XMLString::release( &ptr );
   doc->release();
   XMLPlatformUtils::Terminate();
   return 0;
}

The following is erroneous output when the platform is 'Linux 2.6.3 i686 GNU/Linux' and compiled with 'gcc 3.3.3 Debian':

Value: []

The following is a correct example output with SunOS sds.intranet.abysal 5.8 Generic_108528-29 sun4u sparc SUNW,Ultra-4:

Value: [AB´BA]

Thanks and best regards


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (XERCESC-1193) BUG with the spanish acute on linux but not on solaris (from Bugzilla#28384)

Posted by xe...@xml.apache.org.
Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESC-1193

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESC-1193
    Summary: BUG with the spanish acute on linux but not on solaris (from Bugzilla#28384)
       Type: Bug

     Status: Closed
   Priority: Minor
 Resolution: FIXED

    Project: Xerces-C++
 Components: 
             DOM
   Versions:
             2.4.0

   Assignee: 
   Reporter: Shane Curcuru

    Created: Wed, 14 Apr 2004 11:07 AM
    Updated: Tue, 19 Oct 2004 8:26 AM
Environment: 2.6.3 i686 GNU/Linux, but NOT on solaris

Description:
(Xercen: manually copied from Bugzilla#28384; please contact original poster jmf@abysal.com for details -curcuru)

There is a possible bug in Xerces-C 2.4.0 on linux platforms. This doesn't occur with solaris.

The next small program code demonstrates the problem:

#include <stdio.h>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/framework/MemBufInputSource.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>

const XMLCh proot[] = { 'r', 'o', 'o', 't', '\0' };

static const char *xml_buff =
"<?xml version='1.0' encoding='ISO-8859-1' ?><root>AB´BA</root>";

using namespace xercesc;

int main( int argc, char *argv[] )
{
   XMLPlatformUtils::Initialize( "es_ES" );
   MemBufInputSource *memDoc =
   new MemBufInputSource( (XMLByte *) xml_buff, strlen( xml_buff ), "tmp.xml", 
false );

   XercesDOMParser *parser = new XercesDOMParser;
   parser->parse( *memDoc );
   DOMDocument *doc = parser->adoptDocument();
   delete parser;
   delete memDoc;
   DOMNodeList *dnl = doc->getElementsByTagName( proot );
   DOMNode *dn = dnl->item(0);
   DOMText *dt = (DOMText *) dn->getFirstChild();
   char *ptr = XMLString::transcode( dt->getNodeValue() );
   printf( "Value: [%s]\n", ptr );
   XMLString::release( &ptr );
   doc->release();
   XMLPlatformUtils::Terminate();
   return 0;
}

The following is erroneous output when the platform is 'Linux 2.6.3 i686 GNU/Linux' and compiled with 'gcc 3.3.3 Debian':

Value: []

The following is a correct example output with SunOS sds.intranet.abysal 5.8 Generic_108528-29 sun4u sparc SUNW,Ultra-4:

Value: [AB´BA]

Thanks and best regards


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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