aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-08-02 15:19:43 +0300
committerLasse Collin <lasse.collin@tukaani.org>2023-08-02 15:19:43 +0300
commite8c2203b2c76466d8d3387c5212b46151de8e605 (patch)
treea4edd910bc59f0cfdc406f3d80b81a3584b5d8cd
parentUpdate THANKS. (diff)
downloadxz-e8c2203b2c76466d8d3387c5212b46151de8e605.tar.xz
build-aux/manconv.sh: Fix US-ASCII and UTF-8 output.
groff defaults to SGR escapes. Using -P-c passes -c to grotty which restores the old behavior. Perhaps there is a better way to get pure plain text output but this works for now.
Diffstat (limited to '')
-rw-r--r--build-aux/manconv.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/manconv.sh b/build-aux/manconv.sh
index e53b0269..73e8e3b8 100644
--- a/build-aux/manconv.sh
+++ b/build-aux/manconv.sh
@@ -38,10 +38,10 @@ s/^\\.PD\$/.PD $PD/"
case $FORMAT in
ascii)
- groff -t -mandoc -Tascii | col -bx
+ groff -t -mandoc -Tascii -P-c | col -bx
;;
utf8)
- groff -t -mandoc -Tutf8 | col -bx
+ groff -t -mandoc -Tutf8 -P-c | col -bx
;;
ps)
sed "$SED_PD" | groff -dpaper=$PAPER -t -mandoc \