summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-16 12:25:32 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-16 12:25:32 +0000
commit53895dc947dd04e38242df7ec586e07b9b14ba99 (patch)
tree9efcb13072ea0a235b20f88e6225caffb8412e5a
parente094eec8b4885c7793dfc4e740d95d2b034c4384 (diff)
downloadmandoc-53895dc947dd04e38242df7ec586e07b9b14ba99.tar.gz
process UTF-8 input even in ASCII output mode,
and provide a way to specify additional diff(1) options
-rw-r--r--gmdiff4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmdiff b/gmdiff
index 65cf353d..69431f70 100644
--- a/gmdiff
+++ b/gmdiff
@@ -36,7 +36,7 @@ elif [ "X$1" = "X-u" ]; then
MOPT="-Ios=OpenBSD -Wall -Tutf8 $MOPT"
COLPIPE="cat"
else
- ROFF="groff -et -ww -mtty-char -Tascii -P -c"
+ ROFF="groff -ket -ww -mtty-char -Tascii -P -c"
MOPT="-Ios=OpenBSD -Wall -Tascii $MOPT"
COLPIPE="cat"
fi
@@ -51,7 +51,7 @@ while [ -n "$1" ]; do
for i in roff mandoc; do
[ -s /tmp/$i.err ] && echo "$i errors:" && cat /tmp/$i.err
done
- diff -au /tmp/roff.out /tmp/mandoc.out 2>&1
+ diff -au $DIFFOPT /tmp/roff.out /tmp/mandoc.out 2>&1
done
exit 0