Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 185710 Details for
Bug 263217
games-strategy/glest require <xerces-c-3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
glest-3.1.2 xerces-c patch
glest-xerces-c.patch (text/plain), 1.66 KB, created by
yury fedorchenko
on 2009-03-21 08:03:54 UTC
(
hide
)
Description:
glest-3.1.2 xerces-c patch
Filename:
MIME Type:
Creator:
yury fedorchenko
Created:
2009-03-21 08:03:54 UTC
Size:
1.66 KB
patch
obsolete
>--- shared_lib/sources/xml/xml_parser.cpp.old 2008-02-16 16:01:28.000000000 +0300 >+++ shared_lib/sources/xml/xml_parser.cpp 2009-03-19 18:28:08.000000000 +0300 >@@ -87,10 +87,17 @@ > > try{ > ErrorHandler errorHandler; >+#if XERCES_VERSION_MAJOR < 3 > DOMBuilder *parser= (static_cast<DOMImplementationLS*>(implementation))->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, 0); > parser->setErrorHandler(&errorHandler); > parser->setFeature(XMLUni::fgXercesSchemaFullChecking, true); > parser->setFeature(XMLUni::fgDOMValidation, true); >+#else >+ DOMLSParser *parser = (static_cast<DOMImplementationLS*>(implementation))->createLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, 0); >+ DOMConfiguration *config = parser->getDomConfig(); >+ config->setParameter(XMLUni::fgXercesSchemaFullChecking, true); >+ config->setParameter(XMLUni::fgDOMValidate, true); >+#endif > DOMDocument *document= parser->parseURI(path.c_str()); > > if(document==NULL){ >@@ -119,9 +126,20 @@ > } > > LocalFileFormatTarget file(path.c_str()); >+#if XERCES_VERSION_MAJOR < 3 > DOMWriter* writer = implementation->createDOMWriter(); > writer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true); > writer->writeNode(&file, *document); >+#else >+ DOMLSSerializer *serializer = implementation->createLSSerializer(); >+ DOMLSOutput* output=implementation->createLSOutput(); >+ DOMConfiguration* config=serializer->getDomConfig(); >+ config->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,true); >+ output->setByteStream(&file); >+ serializer->write(document,output); >+ output->release(); >+ serializer->release(); >+#endif > document->release(); > } > catch(const DOMException &e){
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 263217
: 185710 |
185712