mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
fixed various bugs (see SF tracker)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// AttributesImpl.cpp
|
||||
//
|
||||
// $Id: //poco/svn/XML/src/AttributesImpl.cpp#3 $
|
||||
// $Id: //poco/1.3/XML/src/AttributesImpl.cpp#2 $
|
||||
//
|
||||
// Library: XML
|
||||
// Package: SAX
|
||||
@@ -44,14 +44,14 @@ namespace XML {
|
||||
AttributesImpl::AttributesImpl()
|
||||
{
|
||||
_empty.specified = false;
|
||||
_empty.type = "CDATA";
|
||||
_empty.type = XML_LIT("CDATA");
|
||||
}
|
||||
|
||||
|
||||
AttributesImpl::AttributesImpl(const Attributes& attributes)
|
||||
{
|
||||
_empty.specified = false;
|
||||
_empty.type = "CDATA";
|
||||
_empty.type = XML_LIT("CDATA");
|
||||
setAttributes(attributes);
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// NamespaceStrategy.cpp
|
||||
//
|
||||
// $Id: //poco/svn/XML/src/NamespaceStrategy.cpp#3 $
|
||||
// $Id: //poco/1.3/XML/src/NamespaceStrategy.cpp#2 $
|
||||
//
|
||||
// Library: XML
|
||||
// Package: XML
|
||||
@@ -82,13 +82,13 @@ void NamespaceStrategy::splitName(const XMLChar* qname, XMLString& uri, XMLStrin
|
||||
if (*p)
|
||||
prefix.assign(++p);
|
||||
else
|
||||
prefix.assign("");
|
||||
prefix.assign(XML_LIT(""));
|
||||
}
|
||||
else
|
||||
{
|
||||
uri.assign("");
|
||||
uri.assign(XML_LIT(""));
|
||||
localName = qname;
|
||||
prefix.assign("");
|
||||
prefix.assign(XML_LIT(""));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ParserEngine.cpp
|
||||
//
|
||||
// $Id: //poco/svn/XML/src/ParserEngine.cpp#3 $
|
||||
// $Id: //poco/1.3/XML/src/ParserEngine.cpp#4 $
|
||||
//
|
||||
// Library: XML
|
||||
// Package: XML
|
||||
@@ -720,7 +720,7 @@ int ParserEngine::handleUnknownEncoding(void* encodingHandlerData, const XML_Cha
|
||||
if (it != pThis->_encodings.end())
|
||||
knownEncoding = it->second;
|
||||
else
|
||||
knownEncoding = Poco::TextEncoding::find(encoding);
|
||||
knownEncoding = Poco::TextEncoding::find(fromXMLString(encoding));
|
||||
|
||||
if (knownEncoding)
|
||||
{
|
||||
|
Reference in New Issue
Block a user