xmlChar *
ConvertInput(const char *in, xmlCharEncodingHandlerPtr handler)
{
+ return (xmlChar*) in;
+/*
xmlChar *out;
int ret;
int size;
int out_size;
int temp;
- if (in == 0) {
- return NULL;
- }
-
- if (!handler) {
+ if (!in || !handler) {
return (xmlChar*) in;
}
-
size = (int) strlen(in) + 1;
out_size = size * 2 - 1;
out = (unsigned char *) xmlMalloc((size_t) out_size);
out = 0;
} else {
out = (unsigned char *) xmlRealloc(out, out_size + 1);
- out[out_size] = 0; /*null terminating out */
+ out[out_size] = 0; // null terminating out
}
} else {
printf("ConvertInput: no mem\n");
}
return out;
+*/
}
for(element = package->files; element; element=element->next) {
PackageFile *entry = (PackageFile*) element->data;
- // File withou name or path is suspicious => Skip it
+ // File without name or path is suspicious => Skip it
if (!(entry->path)) {
continue;
}
printf("CALLED dump_filelists_items\n");
#endif
- rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL);
+ //rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL);
+ rc = xmlTextWriterStartDocument(writer, NULL, NULL, NULL);
if (rc < 0) {
printf ("Error at xmlTextWriterStartDocument\n");
return;
printf("CALLED dump_other_items\n");
#endif
- rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL);
+ //rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL);
+ rc = xmlTextWriterStartDocument(writer, NULL, NULL, NULL);
if (rc < 0) {
printf ("Error at xmlTextWriterStartDocument\n");
return;
printf("CALLED dump_base_items\n");
#endif
- rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL);
+ //rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL);
+ rc = xmlTextWriterStartDocument(writer, NULL, NULL, NULL);
if (rc < 0) {
printf ("Error at xmlTextWriterStartDocument\n");
return;