Package: debian-policy
Version: 3.5.7.0
Severity: minor
Tags: patch

groff 1.18 typesets bold and italic characters using ANSI color
sequences rather than backspaces, and `col -b' doesn't filter them
out:

                     1mFilesystem Hierarchy Standard -- Version 2.10m

                         Filesystem Hierarchy Standard Group
                               4medited24m 4mby24m 4mDaniel24m 4mQuinlan0m

Setting the GROFF_NO_SGR environment variable makes groff revert to
the old behavior, which `col -b' does handle:

--- debian-policy-3.5.7.0.orig/debian/rules
+++ debian-policy-3.5.7.0/debian/rules
@@ -110,7 +110,7 @@
            cd fhs && patch -p1 < ../mm1.32-patch; \
        fi
        # The extra '.' in the tmac path won't harm if unnecessary
-       GROFF_TMAC_PATH=. cd fhs && $(MAKE) fhs.ps fhs.pdf fhs.txt
+       GROFF_TMAC_PATH=. GROFF_NO_SGR=1 $(MAKE) -C fhs fhs.ps fhs.pdf fhs.txt
        links -dump fhs-changes-2.1.html | perl -pe 's/[\r\0]//g' > \
                     fhs/fhs-changes-2.1.txt
        links -dump upgrading-checklist.html | perl -pe 's/[\r\0]//g' > \

(I used `$(MAKE) -C' to make it fit in 80 columns.)

Thanks,

Matej

Reply via email to