more validation test fixups added duration info for the tests Daniel

* SAX.c parser.c valid.c: more validation test fixups
* check-xml-test-suite.py: added duration info for the tests
Daniel
diff --git a/parserInternals.c b/parserInternals.c
index cdf8dcb..c539714 100644
--- a/parserInternals.c
+++ b/parserInternals.c
@@ -1733,8 +1733,23 @@
         if (ctxt->input != NULL) {
 	    if (ctxt->input->buf != NULL) {
 	        if (ctxt->input->buf->encoder != NULL) {
+		    /*
+		     * Check in case the auto encoding detetection triggered
+		     * in already.
+		     */
 		    if (ctxt->input->buf->encoder == handler)
 			return(0);
+
+		    /*
+		     * "UTF-16" can be used for both LE and BE
+		     */
+		    if ((!xmlStrncmp(BAD_CAST ctxt->input->buf->encoder->name,
+				     BAD_CAST "UTF-16", 6)) &&
+		        (!xmlStrncmp(BAD_CAST handler->name,
+				     BAD_CAST "UTF-16", 6))) {
+			return(0);
+		    }
+
 		    /*
 		     * Note: this is a bit dangerous, but that's what it
 		     * takes to use nearly compatible signature for different