Package: man-db
Version: 2.4.3-1
Severity: normal

It looks like man outputs only ASCII7 text if the output is redirected
to a file or a pipe.  This even happens if the locale is explicitly
specified on the command line.

For example, set your locale to de_DE.UTF-8, and compare the outputs
of "man chsh", "man chsh|less" and "man -L de_DE.UTF-8|less".  The
first one outputs nice utf8 German umlaut chars, but these chars are
simply dropped in the latter two cases.

This breaks programs such as pinfo, which uses man as a backend for
displaying man pages.

I would suggest that man just looks at the current locale (or adding a
command line param that forces such behaviour).  Anyone who
wants a clean ASCII7 text can simply set the correct locale, or
specify -7 on the command line.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.9-ac6
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages man-db depends on:
ii  bsdmainutils                6.1.2        collection of more utilities from 
ii  debconf [debconf-2.0]       1.4.52       Debian configuration management sy
ii  dpkg                        1.13.10      Package maintenance system for Deb
ii  groff-base                  1.18.1.1-8   GNU troff text-formatting system (
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libgdbm3                    1.8.3-2      GNU dbm database routines (runtime

man-db recommends no packages.

-- debconf information:
  man-db/build-database: true
* man-db/rebuild-database: true
* man-db/install-setuid: true


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to