Small cleanups, updates, Daniel
diff --git a/ChangeLog b/ChangeLog
index e8b8081..305f71f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Aug 20 17:03:38 CEST 2000 Daniel Veillard <Daniel.Veillard@w3.org>
+
+ * nanoftp.c nanohttp.c: small cleanup
+ * TODO: updated
+
Sat Aug 19 22:57:02 CEST 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* added an old VC testcase and updated title.xml entity
@@ -78,6 +83,7 @@
Sat Jul 22 05:59:05 CEST 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* parser.c xmlIO.[ch]: fixed the problem of encoding support
+
when using in memory parsing. Need some cleanup.
* xmllint.c configure.in: added a --memory flag to test memory
parsing
diff --git a/Makefile.am b/Makefile.am
index ea393ab..1f06fa6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -96,9 +96,9 @@
$(libxml_la_SOURCES): $(srcdir)/libxml
-testall : tests SVGtests SAXtests XPathtests XMLenttests
+testall : tests SVGtests SAXtests XPathtests
-tests: XMLtests HTMLtests Validtests
+tests: XMLtests XMLenttests HTMLtests Validtests
HTMLtests : testHTML
@(rm -f .memdump ; touch .memdump)
diff --git a/TODO b/TODO
index 7f4c144..ee328a8 100644
--- a/TODO
+++ b/TODO
@@ -6,9 +6,6 @@
TODO:
=====
-- If the internal encoding is not UTF8 saving to a given encoding doesn't
- work => fix to force UTF8 encoding ...
-- problem when parsing hrefs with & with the HTML parser (IRC ac)
- DOM needs
xmlAttrPtr xmlNewDocProp(xmlDocPtr doc, const xmlChar *name, const xmlChar *value)
int xmlPruneProp(xmlNodePtr node, xmlAtttrPtr attr);
@@ -93,6 +90,10 @@
Done:
=====
+- problem when parsing hrefs with & with the HTML parser (IRC ac)
+- If the internal encoding is not UTF8 saving to a given encoding doesn't
+ work => fix to force UTF8 encoding ...
+ done, added documentation too
- Add an ASCII I/O encoder (asciiToUTF8 and UTF8Toascii)
- Issue warning when using non-absolute namespaces URI.
- the html parser should add <head> and <body> if they don't exist
diff --git a/nanoftp.c b/nanoftp.c
index 96fa272..e009402 100644
--- a/nanoftp.c
+++ b/nanoftp.c
@@ -1369,7 +1369,9 @@
return(-1);
}
if (res == 0) {
+#ifdef DEBUG_FTP
fprintf(stderr, "xmlNanoFTPCloseConnection: timeout\n");
+#endif
close(ctxt->controlFd); ctxt->controlFd = -1;
} else {
res = xmlNanoFTPGetResponse(ctxt);
diff --git a/nanohttp.c b/nanohttp.c
index 1beebbf..51f1e92 100644
--- a/nanohttp.c
+++ b/nanohttp.c
@@ -656,7 +656,7 @@
}
if ( FD_ISSET(s, &wfd) ) {
- int len; /* was socklen_t barfed on some systems :-( */
+ unsigned int len; /* was socklen_t barfed on some systems :-( */
len = sizeof(status);
if (getsockopt(s, SOL_SOCKET, SO_ERROR, &status, &len) < 0 ) {
/* Solaris error code */
diff --git a/result/noent/title.xml b/result/noent/title.xml
index 1b3fe07..35c8fc9 100644
--- a/result/noent/title.xml
+++ b/result/noent/title.xml
@@ -1,2 +1,2 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0"?>
<title>my title</title>