]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
build-aux/manconv.sh: Fix US-ASCII and UTF-8 output.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 2 Aug 2023 12:19:43 +0000 (15:19 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 7 May 2024 12:30:02 +0000 (15:30 +0300)
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.

(cherry picked from commit 6a1093c0004c42eeaef312456c295671496dd67a)

build-aux/manconv.sh

index e53b0269e99e7574455dcde12dafab14175f2e24..73e8e3b83e24df638215901f56146620fc1666af 100644 (file)
@@ -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 \