]> 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)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 17 Feb 2018 10:25:28 +0000 (11:25 +0100)
commit0d806799aaef65b12a9b75e8c49c2613c68d5ac2
treea6744b46596e03bd7533a4b9a358cf0a10bed2a3
parentac1d6af008af9eea16496abd01914badb38e3b04
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).
src/Chktex.cpp