[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: man-db locale support



On Sat, Oct 02, 1999 at 10:43:56AM +0300, Fabrizio Polacco wrote:
> On Fri, Oct 01, 1999 at 09:56:10PM +0400, Michael Sobolev wrote:
> > Well, I checked it and it works.  What to do?
> 
> you mean you checked your patch.
> Did you checked also man?
Yes, I did. :)  My settings are: LANG=ru_RU.KOI8-R, LC_MESSAGES, LC_ALL
undefined.  I've put a man page for man (actually, just a copy of English
variant :) into /usr/share/man/ru_RU.KOI8-R/man1/man.1  Then I run

    ./man -d man > ll 2>&1

The most interesting lines from ll are:

...
adding /usr/share/man/ru_RU.KOI8-R to manpathlist
adding /usr/share/man/ru_RU to manpathlist
adding /usr/share/man/ru to manpathlist
...
*manpath search path* = /usr/share/man/ru_RU.KOI8-R:/usr/share/man/ru_RU:/usr/share/man/ru:/usr/share/man:/usr/X11R6/man:/usr/man:/usr/local/man
...

This is an expected behaviour.  So in case

> They put the japanese pages in /usr/share/man/ja/manX and set
> LANG=ja_JP.ujis .

this should also work.

> Now what (I understand) you want is to do the opposite:
> 
> put some manpages in /usr/share/man/ru_RU.XXXX/manX , other in
> /usr/share/man/ru_RU.YYYY/manX and set LANG to "ru", and have man find
> pages from both sides.
> Is this correct? Did I understood well? (english is not my mother
> language, nor yours, so it's not impossible that I get the wrong
> meaning).
No, I do not want man to look into all ru* directories.

> Well; is this what we want?
> If so, it shouldn't be impossible to have _both_ behaviours at the same
> time.
I do not think so.  Even more, as I already said, that private message makes me
think that unless a recoding of some sort will be implemented, along with a
policy that says what encoding is used for man pages /ru/, /ru_RU/, /ja/,
/ja_JP/, etc directories.

--
Mike


Reply to: