From c5cbf99db1d2b15c0afd820691c1dfcf05548d38 Mon Sep 17 00:00:00 2001 From: "William M. Brack" Date: Wed, 29 Oct 2003 22:15:13 +0000 Subject: [PATCH] enhanced to bypass compression detection code when input file is stdin * xmlIO.c: enhanced to bypass compression detection code when input file is stdin (bug 125801) --- ChangeLog | 5 +++++ xmlIO.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 06acaead..44d9e623 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Oct 29 14:13:03 PDT 2003 William Brack + + * xmlIO.c: enhanced to bypass compression detection code + when input file is stdin (bug 125801) + Wed Oct 29 18:21:00 CET 2003 Daniel Veillard * xmlIO.c: fix needed when HTTP is not compiled in by Mark Vakoc diff --git a/xmlIO.c b/xmlIO.c index 9cd16203..f93c4970 100644 --- a/xmlIO.c +++ b/xmlIO.c @@ -2145,7 +2145,8 @@ xmlParserInputBufferCreateFilename(const char *URI, xmlCharEncoding enc) { ret->readcallback = xmlInputCallbackTable[i].readcallback; ret->closecallback = xmlInputCallbackTable[i].closecallback; #ifdef HAVE_ZLIB_H - if (xmlInputCallbackTable[i].opencallback == xmlGzfileOpen) { + if ((xmlInputCallbackTable[i].opencallback == xmlGzfileOpen) && + (strcmp(URI, "-") != 0)) { if (((z_stream *)context)->avail_in > 4) { char *cptr, buff4[4]; cptr = (char *) ((z_stream *)context)->next_in;