aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-09-17 20:07:28 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-09-17 20:07:28 +0000
commit007d51eb73cd5c78b676e13aae5bcfce83550a5d (patch)
tree32b43255598d2282dfc26c040303910d7a30c3c9
parent8d8bf2c5f622671ac3c2e8f136bb060c517c3a19 (diff)
downloadandroid_external_libxml2-007d51eb73cd5c78b676e13aae5bcfce83550a5d.tar.gz
android_external_libxml2-007d51eb73cd5c78b676e13aae5bcfce83550a5d.tar.bz2
android_external_libxml2-007d51eb73cd5c78b676e13aae5bcfce83550a5d.zip
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
-rw-r--r--ChangeLog5
-rw-r--r--python/libxml.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 98d21127..38713fe8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 17 22:06:11 CEST 2003 Daniel Veillard <daniel@veillard.com>
+
+ * python/libxml.c: use stderr and not stdout for default errors
+ in python environment bug #122552
+
Wed Sep 17 21:33:57 CEST 2003 Daniel Veillard <daniel@veillard.com>
* parserInternals.c: small fix from Rob Richards for input filename
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);