Yes getting it fixed is best :-) However, using your
own place is still a good idea if your customers install anything else
themselves. That is really where I get bitten. We sell to large
companies with IT departments and they do all kinds of crazy things ...
usually to my detriment. I just find using my own place protects me
better. Separate from how you handle the zlib issue. Meanwhile a simple hack -- see xmlIO.c /** * xmlGzfileMatch: * @filename: the URI for matching * * input from compressed file test * * Returns 1 if matches, 0 otherwise */ static int xmlGzfileMatch (const char *filename ATTRIBUTE_UNUSED) { return(1); } Right now it always returns 1 because the data has to be read a bit to see if it is zlib or not. Which is why the problem exists even if the file is not zlib. If you want to disable, simply set this to zero. You can do this the complete and total hack way which I use a lot for quick patches like this that I don't think will be permanent: static int xmlGzfileMatch (const char *filename ATTRIBUTE_UNUSED) { char *e=getenv("SKIP_ZLIB"); if (e && *e == 'Y') return(0); return(1); } Then in your calling program put: putenv("SKIP_ZLIB=Y"); That will do it ... remember to set to N when you are done if your program might want to use zlib later. I believe that will work ... I did not test it. Daniel might know off-hand. E On 8/16/2012 12:25 PM, Alex Bligh wrote:
-- Eric S. Eberhard VICS PO Box 3661 Camp Verde, AZ 86322 928-567-3727 work 928-301-7537 cell http://www.vicsmba.com/index.html (our work) http://www.vicsmba.com/ourpics/index.html (fun pictures) |