get rid of all the perror() calls made in the library execution paths.

* DOCBparser.c HTMLparser.c c14n.c entities.c list.c
  parser.c parserInternals.c xmlIO.c: get rid of all the
  perror() calls made in the library execution paths. This
  should fix both #92059 and #92385
Daniel
diff --git a/parserInternals.c b/parserInternals.c
index 8d4e680..ea217ad 100644
--- a/parserInternals.c
+++ b/parserInternals.c
@@ -2351,7 +2351,7 @@
     if (ctxt == NULL) {
         xmlGenericError(xmlGenericErrorContext,
 		"xmlNewParserCtxt : cannot allocate context\n");
-        perror("malloc");
+        xmlGenericError(xmlGenericErrorContext, "malloc failed");
 	return(NULL);
     }
     memset(ctxt, 0, sizeof(xmlParserCtxt));
@@ -2767,7 +2767,8 @@
     buffer_size = XML_PARSER_BIG_BUFFER_SIZE;
     buffer = (xmlChar *) xmlMalloc(buffer_size * sizeof(xmlChar));
     if (buffer == NULL) {
-	perror("xmlDecodeEntities: malloc failed");
+	xmlGenericError(xmlGenericErrorContext, 
+		        "xmlDecodeEntities: malloc failed");
 	return(NULL);
     }