I have
$ locale
LANG=en_GB.UTF-8
LC_CTYPE=ru_RU.UTF-8
LC_NUMERIC=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE=ru_RU.UTF-8
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES=en_GB.UTF-8
LC_PAPER=ru_RU.UTF-8
LC_NAME=ru_RU.UTF-8
LC_ADDRESS=ru_RU.UTF-8
LC_TELEPHONE=ru_RU.UTF-8
LC_MEASUREMENT=ru_RU.UTF-8
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
$ locale -a
C
en_GB.utf8
POSIX
ru_RU.utf8
But man
gives the error:
$ man
man: can't set the locale; make sure $LC_* and $LANG are correct
What manual page do you want?
If I set the LC_ALL
, the error disappears:
$ LC_ALL=en_GB.UTF-8 man
What manual page do you want?
But I don't want to set LC_ALL
because I set some LC_
to the other locale.
How to solve this problem with man
?
LC_ALL=ru_RU.UTF-8 man
cause no error. Thus, IMHO,man
just considers not allLC_
are set. Maybe it needLC_ALL
mandatory is set, but this is stupid behavior, I think... – Nov 03 '12 at 14:49