summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-pda/libsyncml/files/libsyncml-0.4.2-wbxml.patch')
-rw-r--r--app-pda/libsyncml/files/libsyncml-0.4.2-wbxml.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/app-pda/libsyncml/files/libsyncml-0.4.2-wbxml.patch b/app-pda/libsyncml/files/libsyncml-0.4.2-wbxml.patch
new file mode 100644
index 000000000000..225ebefbe9cb
--- /dev/null
+++ b/app-pda/libsyncml/files/libsyncml-0.4.2-wbxml.patch
@@ -0,0 +1,22 @@
+diff -ur libsyncml-0.4.2/libsyncml/parser/sml_xml_assm.c libsyncml/libsyncml/parser/sml_xml_assm.c
+--- libsyncml-0.4.2/libsyncml/parser/sml_xml_assm.c 2006-09-09 16:40:08.000000000 +0200
++++ libsyncml/libsyncml/parser/sml_xml_assm.c 2006-11-24 16:20:14.000000000 +0100
+@@ -1441,14 +1443,17 @@
+ /* Add the syncml start node */
+ switch (assm->session->version) {
+ case SML_VERSION_10:
++ xmlTextWriterWriteRaw(assm->writer, (xmlChar *)"<!DOCTYPE SyncML PUBLIC \"-//SYNCML//DTD SyncML 1.0//EN\" \"http://www.syncml.org/docs/syncml_represent_v10_20001207.dtd\">");
+ if (!_smlXmlAssemblerStartNodeNS(assm, SML_ELEMENT_SYNCML, SML_NAMESPACE_SYNCML10, error))
+ goto error_free_writer;
+ break;
+ case SML_VERSION_11:
++ xmlTextWriterWriteRaw(assm->writer, (xmlChar *)"<!DOCTYPE SyncML PUBLIC \"-//SYNCML//DTD SyncML 1.1//EN\" \"http://www.syncml.org/docs/syncml_represent_v11_20020213.dtd.dtd\">");
+ if (!_smlXmlAssemblerStartNodeNS(assm, SML_ELEMENT_SYNCML, SML_NAMESPACE_SYNCML11, error))
+ goto error_free_writer;
+ break;
+ case SML_VERSION_12:
++ xmlTextWriterWriteRaw(assm->writer, (xmlChar *)"<!DOCTYPE SyncML PUBLIC \"-//SYNCML//DTD SyncML 1.2//EN\" \"http://www.openmobilealliance.org/tech/DTD/OMA-TS-SyncML_RepPro_DTD-V1_2.dtd\">");
+ if (!_smlXmlAssemblerStartNodeNS(assm, SML_ELEMENT_SYNCML, SML_NAMESPACE_SYNCML12, error))
+ goto error_free_writer;
+ break;
+