Package: man-db
Version: 2.5.0-4
Severity: minor
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
currently man detects language (and thus encoding used by troff) by
looking at path it got. This is reason why following commands behave
differently:
[EMAIL PROTECTED]:/usr/share/man/cs$ man ./man5/passwd.5.gz
[EMAIL PROTECTED]:/usr/share/man/cs$ man `pwd`/man5/passwd.5.gz
First one fails to display man page, while the second one works. If full
absolute path would be used for detection, it would catch this
situation.
However it might be even better to try to detect language by looking at
content - many non English man pages set hyphenation language by .hla
command. Taking this value as a language could also work (but I don't
have deep knowledge about man pages, so maybe I'm completely wrong).
- --
Michal Čihař | http://cihar.com | http://blog.cihar.com
- -- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.23-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages man-db depends on:
ii bsdmainutils 6.1.10 collection of more utilities from
ii debconf [debconf-2.0] 1.5.18 Debian configuration management sy
ii dpkg 1.14.15 package maintenance system for Deb
ii groff-base 1.18.1.1-15 GNU troff text-formatting system (
ii libc6 2.7-5 GNU C Library: Shared libraries
ii libgdbm3 1.8.3-3 GNU dbm database routines (runtime
ii zlib1g 1:1.2.3.3.dfsg-8 compression library - runtime
man-db recommends no packages.
- -- debconf information:
man-db/build-database: true
man-db/rebuild-database: true
* man-db/install-setuid: true
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHhX0o3DVS6DbnVgQRAl+/AJwM3lcMRt9lLc1w22YJFshlLEwDgQCeO1KI
DzQWD/uaEUWKLSecaMIahbQ=
=lDxP
-----END PGP SIGNATURE-----