Bug#872338: perl-doc: mangled emphasis: ESC[4mfooESC[0m
Adam Borowski
kilobyte at angband.pl
Wed Aug 16 13:30:15 UTC 2017
Package: perl-doc
Version: 5.26.0-5
Severity: normal
Hi!
If you use perldoc on anything that includes emphasis (for example on
"perldoc -f exec" and many other entries), they show as "ESC[4mfooESC[0m".
pstree shows:
bash───perldoc───sh───sensible-pager───pager
symlinks go:
/usr/bin/pager → /etc/alternatives/pager → /bin/less
This is same as:
$ printf 'abc\e[4mdef\e[0mghi\n' >foo
$ less foo
as compared to:
$ less -R foo
or even:
$ cat foo
I don't have $PAGER set, nor have I ever messed with pager settings.
Using SGR codes instead of the ancient printer-like backspace hack is
commendable and much nicer, but you'd have to somehow request the pager
to enable their recognition.
Meow!
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.13.0-rc4-debug-00052-gbdd287aecdf1 (SMP w/6 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages perl-doc depends on:
ii perl 5.26.0-5
perl-doc recommends no packages.
Versions of packages perl-doc suggests:
ii groff-base 1.22.3-9
ii man-db [man-browser] 2.7.6.1-2
-- no debconf information
More information about the Perl-maintainers
mailing list