]> git.lyx.org Git - features.git/commit
Adapt to new ChkTeX return values.
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 17 Feb 2018 10:25:28 +0000 (11:25 +0100)
committerRichard Heck <rgheck@lyx.org>
Sat, 17 Mar 2018 19:44:05 +0000 (15:44 -0400)
commit0e08b4e4f51be980aa937f69911d9cee270fb22d
tree8f54f95a7c6b17230981c0c5e2540ef728c23664
parent8bf7e691bc22df58f11859421e240c2e912e4ef3
Adapt to new ChkTeX return values.

As of v. 1.7.7, chktex has four exit values. Only consider the program
failed with EXIT_FAILURE (1). This is backwards compatible to chktex
up to v. 1.7.5 and later patched versions included in TeXLive, where
there was the distinction EXIT_FAILURE (program failed) and EXIT_SUCCESS
(program successfully run, with or without something to report).

Note that ChkTeX v. 1.7.5 and 1.7.6 vanilla (as included in MikTeX) also
returned EXITE_FAILURE if ChkTeX found something to report.

We do not, and never did, support this case.

Fixes: #9989 (after ChkTeX 1.7.7. is released).
(cherry picked from commit 0d806799aaef65b12a9b75e8c49c2613c68d5ac2)
src/Chktex.cpp
status.23x