Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 221191 - Escape sequences are not expanded in man pages (sys-apps/man bug ?)
Summary: Escape sequences are not expanded in man pages (sys-apps/man bug ?)
Status: RESOLVED DUPLICATE of bug 146315
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-10 09:28 UTC by Alexander Soloviëv
Modified: 2008-05-27 20:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Soloviëv 2008-05-10 09:28:36 UTC
Escape sequences in man pages are printed "as it is" wihtout expanding. Described behaviour one can reproduce with command 

$ nroff -mandoc -man ./path_to_man | /usr/bin/less

Desired behaviour is

$ nroff -mandoc -man ./path_to_man | /usr/bin/less -R

There is a lot of environment variables and config options that control less output, but its don't influence on man output. Defenetly, environment variable $LESS

$ echo $LESS
-R -M --shift 5

And PAGER/BROWSER varibles in /etc/man.conf

$ noname ~ # grep  -e "PAGER" /etc/man.conf
PAGER           /usr/bin/less -is -R

Independently of context of these variables man output pages without expanding escape sequences. The bug occurence was noticed after upgrading to baselayout 2.0,

Reproducible: Always

Steps to Reproduce:
$ man man
Actual Results:  
gives screen with trash of escape sequences

Expected Results:  
Well-formed man page

The bug arised after migration to baselayout 2.0

noname ~ # emerge --info
Portage 2.1.5_rc1 (default-linux/x86/2007.0, gcc-4.2.3, glibc-2.7-r1, 2.6.24-hardened-r1 i686)
=================================================================
System uname: 2.6.24-hardened-r1 i686 Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz
Timestamp of tree: Wed, 07 May 2008 18:04:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.4.4, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.3
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/var/db/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://c.aliki.ru/pub/mirror/gentoo"
LANG="ru_RU.UTF-8"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/var/db/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/db/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa avi bash-completion berkdb bzip2 chroot cli consolekit cracklib crypt cups dba dbus divx4linux dri exif fbcon fontconfig fortran gdbm gtk2 hal iconv ipv6 isdnlog jbig jpeg jpeg2k lcms matroska memlimit midi mmx mpeg mudflap ncurses nptl nptlonly openexr opengl openmp pam pcre pic png pppd python qt readline reflection rtc sasl session spl sse sse2 ssl ssse3 svg tcpd threads tiff unicode usb x86 xorg xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authz_groupfile authz_user authz_owner authn_file auth_basic authz_svn_module filter unique_id access authz_host auth auth_dbm auth_anon auth_digest alias file_cache echo charset_lite cache disk_cache mem_cache ext_filter case_filter case_filter_in deflate mime_magic cern_meta expires headers usertrack proxy proxy_connect proxy_ftp proxy_http info include cgi cgid dav dav_fs dav_lock vhost_alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir actions so" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="v4l fbcon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-05-10 16:16:58 UTC

*** This bug has been marked as a duplicate of bug 146315 ***
Comment 2 Alexander Soloviëv 2008-05-10 17:13:18 UTC
(In reply to comment #1)
> 
> *** This bug has been marked as a duplicate of bug 146315 ***
> 

Please, point out to the solution. I can't connect bug 146515 with my problem. Thanks.
Comment 3 plasmagunman 2008-05-27 20:17:35 UTC
i had the same problem, using sys-apps/groff-1.19.2-r1 and sys-apps/man-1.6f-r1, the versions mentioned in the other bug, the versions which /should/ work...

adding -c to the NROFF line in /etc/man.conf solved the problem for me, so the line reads now:
NROFF       /usr/bin/nroff -c -mandoc

hope this helps.