Your message dated Fri, 7 Jan 2011 23:21:12 +0000
with message-id <[email protected]>
and subject line Re: Bug#578115: man-db: man(1) does not honor LANG=C.UTF-8
has caused the Debian Bug report #578115,
regarding man-db: man(1) does not honor LANG=C.UTF-8
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
578115: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578115
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: man-db
Version: 2.5.2-4
Severity: minor
Tags: l10n
If LANG is set to en_US.UTF-8, some man pages, such as cal(1), are
rendered with Unicode hyphens. If LANG is set to C.UTF-8, however,
this does not happen and ASCII dashes appear instead.
This is not a problem in groff because if groff is run directly with
LANG set to C.UTF-8, Unicode hyphens *do* come out:
% env LANG=en_US.UTF-8 man 1 cal | less
(see hyphens)
% env LANG=C.UTF-8 man 1 cal | less
(see dashes)
% zcat /usr/share/man/man1/cal.1.gz | env LANG=C.UTF-8 nroff -mdoc - | less
(see hyphens)
It appears from the --debug output that man believes for some reason
that C.UTF-8 is not a valid locale. But it is...
FWIW, not just groff but also emacs (emacs 22.2+2-5) accepts and
handles C.UTF-8.
------
man: can't set the locale; make sure $LC_* and $LANG are correct
ruid=0, euid=0
++priv_drop_count = 1
>From the config file /etc/manpath.config:
Mandatory mandir `/usr/man'.
Mandatory mandir `/usr/share/man'.
Mandatory mandir `/usr/local/share/man'.
Path `/bin' mapped to mandir `/usr/share/man'.
Path `/usr/bin' mapped to mandir `/usr/share/man'.
Path `/sbin' mapped to mandir `/usr/share/man'.
Path `/usr/sbin' mapped to mandir `/usr/share/man'.
Path `/usr/local/bin' mapped to mandir `/usr/local/man'.
Path `/usr/local/bin' mapped to mandir `/usr/local/share/man'.
Path `/usr/local/sbin' mapped to mandir `/usr/local/man'.
Path `/usr/local/sbin' mapped to mandir `/usr/local/share/man'.
Path `/usr/X11R6/bin' mapped to mandir `/usr/X11R6/man'.
Path `/usr/bin/X11' mapped to mandir `/usr/X11R6/man'.
Path `/usr/games' mapped to mandir `/usr/share/man'.
Path `/opt/bin' mapped to mandir `/opt/man'.
Path `/opt/sbin' mapped to mandir `/opt/man'.
Global mandir `/usr/man', catdir `/var/cache/man/fsstnd'.
Global mandir `/usr/share/man', catdir `/var/cache/man'.
Global mandir `/usr/local/man', catdir `/var/cache/man/oldlocal'.
Global mandir `/usr/local/share/man', catdir `/var/cache/man/local'.
Global mandir `/usr/X11R6/man', catdir `/var/cache/man/X11R6'.
Global mandir `/opt/man', catdir `/var/cache/man/opt'.
Added section `1'.
Added section `n'.
Added section `l'.
Added section `8'.
Added section `3'.
Added section `2'.
Added section `3posix'.
Added section `3pm'.
Added section `3perl'.
Added section `5'.
Added section `4'.
Added section `9'.
Added section `6'.
Added section `7'.
`/usr/man' `' `1'
`/usr/share/man' `' `1'
`/usr/local/share/man' `' `1'
`/bin' `/usr/share/man' `0'
`/usr/bin' `/usr/share/man' `0'
`/sbin' `/usr/share/man' `0'
`/usr/sbin' `/usr/share/man' `0'
`/usr/local/bin' `/usr/local/man' `0'
`/usr/local/bin' `/usr/local/share/man' `0'
`/usr/local/sbin' `/usr/local/man' `0'
`/usr/local/sbin' `/usr/local/share/man' `0'
`/usr/X11R6/bin' `/usr/X11R6/man' `0'
`/usr/bin/X11' `/usr/X11R6/man' `0'
`/usr/games' `/usr/share/man' `0'
`/opt/bin' `/opt/man' `0'
`/opt/sbin' `/opt/man' `0'
`/usr/man' `/var/cache/man/fsstnd' `-1'
`/usr/share/man' `/var/cache/man' `-1'
`/usr/local/man' `/var/cache/man/oldlocal' `-1'
`/usr/local/share/man' `/var/cache/man/local' `-1'
`/usr/X11R6/man' `/var/cache/man/X11R6' `-1'
`/opt/man' `/var/cache/man/opt' `-1'
`1' `' `-5'
`n' `' `-5'
`l' `' `-5'
`8' `' `-5'
`3' `' `-5'
`2' `' `-5'
`3posix' `' `-5'
`3pm' `' `-5'
`3perl' `' `-5'
`5' `' `-5'
`4' `' `-5'
`9' `' `-5'
`6' `' `-5'
`7' `' `-5'
real user = 0; effective user = 0
using pager -s as pager
path directory /usr/local/sbin is in the config file
adding /usr/local/man to manpath
adding /usr/local/share/man to manpath
path directory /usr/local/bin is in the config file
/usr/local/man is already in the manpath
/usr/local/share/man is already in the manpath
path directory /usr/sbin is in the config file
adding /usr/share/man to manpath
path directory /usr/bin is in the config file
/usr/share/man is already in the manpath
path directory /sbin is in the config file
/usr/share/man is already in the manpath
path directory /bin is in the config file
/usr/share/man is already in the manpath
adding mandatory man directories
warning: /usr/man: No such file or directory
/usr/share/man is already in the manpath
/usr/local/share/man is already in the manpath
add_nls_manpath(): processing /usr/local/man:/usr/local/share/man:/usr/share/man
adding /usr/local/man to manpathlist
adding /usr/local/share/man to manpathlist
adding /usr/share/man to manpathlist
*manpath search path* = /usr/local/man:/usr/local/share/man:/usr/share/man
--priv_drop_count = 0
section: 1
searching in /usr/local/man, section 1
trying section 1 with globbing
Layout is GNU (1)
update_directory_cache /usr/local/man/man1: miss
can't open directory /usr/local/man/man1: No such file or directory
directory cache update failed
update_directory_cache /usr/local/man/cat1: miss
can't open directory /usr/local/man/cat1: No such file or directory
directory cache update failed
Failed to open /var/cache/man/oldlocal/index.db O_RDONLY
searching in /usr/local/share/man, section 1
trying section 1 with globbing
update_directory_cache /usr/local/share/man/man1: miss
can't open directory /usr/local/share/man/man1: No such file or directory
directory cache update failed
update_directory_cache /usr/local/share/man/cat1: miss
can't open directory /usr/local/share/man/cat1: No such file or directory
directory cache update failed
Failed to open /var/cache/man/local/index.db O_RDONLY
searching in /usr/share/man, section 1
trying section 1 with globbing
update_directory_cache /usr/share/man/man1: miss
globbing pattern in /usr/share/man/man1: cal.1*
matched: /usr/share/man/man1/cal.1.gz
ult_src: File /usr/share/man/man1/cal.1.gz in mantree /usr/share/man
ult_softlink: (/usr/share/man/man1/ncal.1.gz)
Starting pipeline: zcat < /usr/share/man/man1/ncal.1.gz [input: {0,
/usr/share/man/man1/ncal.1.gz}, output: {-1, NULL}]
Started "zcat < /usr/share/man/man1/ncal.1.gz", pid 17782
Waiting for pipeline: zcat < /usr/share/man/man1/ncal.1.gz [input: {0,
/usr/share/man/man1/ncal.1.gz}, output: {-1, NULL}]
Active processes (1):
"zcat < /usr/share/man/man1/ncal.1.gz" (17782) -> 0
candidate: 0 0 cal /usr/share/man B - 1 1
ult_src: File /usr/share/man/man1/cal.1.gz in mantree /usr/share/man
ult_softlink: (/usr/share/man/man1/ncal.1.gz)
Starting pipeline: zcat < /usr/share/man/man1/ncal.1.gz [input: {0,
/usr/share/man/man1/ncal.1.gz}, output: {-1, NULL}]
Started "zcat < /usr/share/man/man1/ncal.1.gz", pid 17783
Waiting for pipeline: zcat < /usr/share/man/man1/ncal.1.gz [input: {0,
/usr/share/man/man1/ncal.1.gz}, output: {-1, NULL}]
Active processes (1):
"zcat < /usr/share/man/man1/ncal.1.gz" (17783) -> 0
found ultimate source file /usr/share/man/man1/ncal.1.gz
converted /usr/share/man/man1/cal.1.gz to /usr/share/man/cat1/cal.1.gz
is_changed: a=/usr/share/man/man1/cal.1.gz, b=/usr/share/man/cat1/cal.1.gz (-2)
converted /var/cache/man/cat1/ncal.1.gz to /var/cache/man/cat1/ncal.1.gz
will try cat file /var/cache/man/cat1/ncal.1.gz
chdir /usr/share/man
Starting pipeline: zcat < /usr/share/man/man1/ncal.1.gz [input: {0,
/usr/share/man/man1/ncal.1.gz}, output: {-1, NULL}]
Started "zcat < /usr/share/man/man1/ncal.1.gz", pid 17784
pre-processors `t' from default
page_encoding = ISO-8859-1
source_encoding = ISO-8859-1
cat_charset = ANSI_X3.4-1968
locale_charset = ANSI_X3.4-1968
roff_device (locale) = ascii
roff_encoding = ANSI_X3.4-1968
output_encoding = ANSI_X3.4-1968
less_charset = ascii
format: 1, save_cat: 0, found: 1
Setting LESS to -ix8RmPm Manual page cal(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e
(END):?pB %pB\%..$PM Manual page cal(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e
(END):?pB %pB\%..$
Setting MAN_PN to cal(1)
++priv_drop_count = 1
Starting pipeline: /usr/bin/zsoelim | /usr/lib/man-db/manconv -f
UTF-8:ISO-8859-1 -t ANSI_X3.4-1968//IGNORE | tbl | nroff -mandoc -Tascii | col
-b -p -x [input: {-1, NULL}, output: {-1, NULL}]
Started "/usr/bin/zsoelim", pid 17785
Started "/usr/lib/man-db/manconv", pid 17786
zsoelim: can't set the locale; make sure $LC_* and $LANG are correct
manconv: can't set the locale; make sure $LC_* and $LANG are correct
Started "tbl", pid 17787
Started "nroff", pid 17790
Started "col", pid 17791
Starting pipeline: pager -s [input: {-1, NULL}, output: {0, NULL}]
Started "pager", pid 17792
source pipeline 0 returned error or EOF
source pipeline 1 returned error or EOF
Waiting for pipeline: zcat < /usr/share/man/man1/ncal.1.gz [input: {0,
/usr/share/man/man1/ncal.1.gz}, output: {-1, NULL}]
Active processes (1):
"zcat < /usr/share/man/man1/ncal.1.gz" (17784) -> 0
Waiting for pipeline: /usr/bin/zsoelim | /usr/lib/man-db/manconv -f
UTF-8:ISO-8859-1 -t ANSI_X3.4-1968//IGNORE | tbl | nroff -mandoc -Tascii | col
-b -p -x [input: {-1, NULL}, output: {-1, NULL}]
Active processes (5):
"/usr/bin/zsoelim" (17785) -> 0
"/usr/lib/man-db/manconv" (17786) -> 0
"tbl" (17787) -> 0
"nroff" (17790) -> 0
"col" (17791) -> 0
Waiting for pipeline: pager -s [input: {-1, NULL}, output: {0, NULL}]
Active processes (1):
"pager" (17792) -> -1
CAL(1) BSD General Commands Manual CAL(1)
NAME
cal, ncal - displays a calendar and the date of easter
SYNOPSIS
cal [-3jmy] [[month] year]
ncal [-jJpwy] [-s country_code] [[month] year]
ncal [-Jeo] [year]
DESCRIPTION
The cal utility displays a simple calendar in traditional format and ncal
offers an alternative layout, more options and the date of easter. The
new format is a little cramped but it makes a year fit on a 25x80 termi-
nal. If arguments are not specified, the current month is displayed.
The options are as follows:
-3 Print the previous month, the current month, and the next month
all on one row. This flag will only work if you are not display-
ing Julian days (see -J below).
-J Display Julian Calendar, if combined with the -e option, display
date of easter according to the Julian Calendar.
-e Display date of easter (for western churches).
-m Print a calendar where Monday is the first day of the week, as
opposed to Sunday.
-j Display Julian days (days one-based, numbered from January 1).
-o Display date of orthodox easter (Greek and Russian Orthodox
Churches).
-p Print the country codes and switching days from Julian to Grego-
rian Calendar as they are assumed by ncal. The country code as
determined from the local environment is marked with an asterisk.
-s country_code
Assume the switch from Julian to Gregorian Calendar at the date
associated with the country_code. If not specified, ncal tries
to guess the switch date from the local environment or falls back
to September 2, 1752. This was when Great Britain and her
colonies switched to the Gregorian Calendar.
-w Print the number of the week below each week column.
-y Display a calendar for the current year.
A single parameter specifies the year (1 - 5875706) to be displayed; note
the year must be fully specified: ``cal 89'' will not display a calendar
for 1989. Two parameters denote the month and year; the month is either
a number between 1 and 12, or a full or abbreviated name as specified by
the current locale.
A year starts on Jan 1.
SEE ALSO
calendar(3), strftime(3)
HISTORY
A cal command appeared in v5 UNIX. The ncal command appeared in
FreeBSD 2.2.6.
AUTHORS
The ncal command and manual were written by Wolfgang Helbig
<[email protected]>.
BUGS
The assignment of Julian - Gregorian switching dates to country codes is
historically naive for many countries.
BSD March 26, 2004 BSD
Active processes (1):
"pager" (17792) -> 0
--priv_drop_count = 0
hash_free: 2 entries, 2 (100%) unique
Found 1 man pages
++priv_drop_count = 1
hash_free: 1 entries, 1 (100%) unique
-- System Information:
Debian Release: 5.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (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/bash
Versions of packages man-db depends on:
ii bsdmainutils 6.1.10 collection of more utilities from
ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy
ii dpkg 1.14.29 Debian package management system
ii groff-base 1.18.1.1-21 GNU troff text-formatting system (
ii libc6 2.7-18lenny2 GNU C Library: Shared libraries
ii libgdbm3 1.8.3-3 GNU dbm database routines (runtime
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
man-db recommends no packages.
Versions of packages man-db suggests:
ii epiphany-gecko [www-browser] 2.22.3-9 Intuitive GNOME web browser - Geck
pn groff <none> (no description available)
ii iceweasel [www-browser] 3.0.6-3 lightweight web browser based on M
ii less 418-1 Pager program similar to more
ii w3m [www-browser] 0.5.2-2+b1 WWW browsable pager with excellent
-- debconf information:
man-db/install-setuid: false
--- End Message ---
--- Begin Message ---
On Sat, Apr 17, 2010 at 09:31:52AM +0100, Colin Watson wrote:
> On Fri, Apr 16, 2010 at 09:06:58PM -0400, David Holland wrote:
> > It appears from the --debug output that man believes for some reason
> > that C.UTF-8 is not a valid locale. But it is...
>
> But it's not, unless you've manually defined it with localedef(1) (which
> does not appear to be the case given the output). It's not one of
> glibc's standard locales (useful though it would be if it were). See
> /usr/share/i18n/SUPPORTED.
>
> The message you're seeing in the debug output indicates that
> setlocale(3) returned an error, which is not specific to man.
Given this, I'm going to close the bug. Applications which cope with
C.UTF-8 are likely simply falling back to C (which in fact is what man
is doing here), or perhaps doing things which aren't specified by POSIX;
in general glibc must know about a locale in order for it to work
properly.
The installation-locale source package has a Makefile which can build a
C.UTF-8 locale which you could then install by hand, if you felt so
inclined.
Cheers,
--
Colin Watson [[email protected]]
--- End Message ---