diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-16 12:25:32 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-16 12:25:32 +0000 |
commit | 53895dc947dd04e38242df7ec586e07b9b14ba99 (patch) | |
tree | 9efcb13072ea0a235b20f88e6225caffb8412e5a | |
parent | e094eec8b4885c7793dfc4e740d95d2b034c4384 (diff) | |
download | mandoc-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-- | gmdiff | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |