From 44573b326d6604f3025f17909863711b17011d5f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 16 Aug 2018 12:25:32 +0000 Subject: process UTF-8 input even in ASCII output mode, and provide a way to specify additional diff(1) options --- gmdiff | 4 ++-- 1 file 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 -- cgit v1.2.3-56-ge451