[ expat-Bugs-2517938 ] xmlwf should return non-zero exit status if not well-formed
"SourceForge.net" <[email protected]> Mon, 19 Jan 2009 00:20:19 +0000
| Newsgroups | gmane.text.xml.expat.bugs |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2517938, was opened at 2009-01-18 15:40 Message generated for change (Comment added) made by kwaclaw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110127&aid=2517938&group_id=10127 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Daniel Leidert (dleidert) >Assigned to: Karl Waclawek (kwaclaw) Summary: xmlwf should return non-zero exit status if not well-formed Initial Comment: In Debian bug #82763 a user requested to stop at the first not well-formed document with a non-zero exit status. The patch is attached. We apply it for Debian atm. [1] http://bugs.debian.org/82763 ---------------------------------------------------------------------- >Comment By: Karl Waclawek (kwaclaw) Date: 2009-01-18 19:20 Message: It seems this is indeed a bug. In other error cases (out of memory, file open error), xmlwf returns 1. When incorrect parameters are passed, it returns 2. The Debian patch returns 2 for a parse error. This seems to be in line with existing usage, where 1 indicates an exception (execution error), and 2 indicates an actual execution result. So I applied the patch - see xmlwf.c rev. 1.75. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110127&aid=2517938&group_id=10127