#469 xmlwf should return non-zero exit status if not well-formed


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


  • Daniel Leidert

    Daniel Leidert - 2009-01-18

    proposed patch

  • Karl Waclawek

    Karl Waclawek - 2009-01-19
    • assigned_to: nobody --> kwaclaw
  • Karl Waclawek

    Karl Waclawek - 2009-01-19

    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.

  • Karl Waclawek

    Karl Waclawek - 2009-01-19
    • status: open --> open-fixed
  • Karl Waclawek

    Karl Waclawek - 2012-03-03
    • status: open-fixed --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks