- tree.c: xmlNewDoc was missing the charset initialization
- xmllint.c: added --auto to autogenerate a doc, allow to
  reproduce the problem fixed on xmlNewDoc
Daniel
diff --git a/tree.c b/tree.c
index 5c5fb8d..4efe36a 100644
--- a/tree.c
+++ b/tree.c
@@ -477,6 +477,7 @@
     cur->standalone = -1;
     cur->compression = -1; /* not initialized */
     cur->doc = cur;
+    cur->charset = XML_CHAR_ENCODING_UTF8;
     return(cur);
 }