From 007d51eb73cd5c78b676e13aae5bcfce83550a5d Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 17 Sep 2003 20:07:28 +0000 Subject: use stderr and not stdout for default errors in python environment bug * python/libxml.c: use stderr and not stdout for default errors in python environment bug #122552 Daniel --- python/libxml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/libxml.c') diff --git a/python/libxml.c b/python/libxml.c index 5edc0396..f323d81d 100644 --- a/python/libxml.c +++ b/python/libxml.c @@ -447,7 +447,7 @@ pythonExternalEntityLoader(const char *URL, const char *ID, Py_XDECREF(ctxtobj); #ifdef DEBUG_LOADER printf("pythonExternalEntityLoader: result "); - PyObject_Print(ret, stdout, 0); + PyObject_Print(ret, stderr, 0); printf("\n"); #endif @@ -1244,7 +1244,7 @@ libxml_xmlErrorFuncHandler(ATTRIBUTE_UNUSED void *ctx, const char *msg, if (libxml_xmlPythonErrorFuncHandler == NULL) { va_start(ap, msg); - vfprintf(stdout, msg, ap); + vfprintf(stderr, msg, ap); va_end(ap); } else { va_start(ap, msg); -- cgit v1.2.1