aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/gmdiff
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
commit44573b326d6604f3025f17909863711b17011d5f (patch)
tree2f799a005ddc5af896cb8cc95d7b54f7765c61a5 /gmdiff
parent58fd1ae836b3d8701068197d02994d62b90cd1af (diff)
downloadmandoc-44573b326d6604f3025f17909863711b17011d5f.tar.gz
mandoc-44573b326d6604f3025f17909863711b17011d5f.tar.zst
mandoc-44573b326d6604f3025f17909863711b17011d5f.zip
process UTF-8 input even in ASCII output mode,
and provide a way to specify additional diff(1) options
Diffstat (limited to 'gmdiff')
-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