Re: man-db locale support
> > On Thu, Sep 30, 1999 at 05:01:29PM +0300, Fabrizio Polacco wrote:
> > Pardon? I did not quite catch. If I have a Russian man page, I do not need to
> > read English version, do I? Well, if I have to read English version, I would
> > issue `LANG= man command'.
>
> I mean, you know that translations are sistematically late ... so if you
> issue man foo and foo page does not exist for your LANG, then you fall
> back to english.
Well, if look on the code of man program, we will see that for every directory (path)
in MANPATH it adds path/lang *before* this path. So, from MANPATH=/usr/share/man,
we'll get MANPATH=/usr/share/man/ru:/usr/share/man, which means that if we do not
have a translated manual page the default one will be shown. The patch I sent
you does the same, but for LANG=country_TERRITORY.ENCODING,VERSION, it adds all of
them from the most specific to the least specific. So everything should continue
to work. No?
> > As for groff, here we usually use latin1. I do not know whether it's nice or
> > not: it just works.
>
> I should have misse dsomething, as they are competely different
> charsets. maybe you mean that you just excenge fonts and that's all?
What I mean is that if one specify -t latin1, one gets a decent result, nothing
more. There is a problem with -t latin1, as the `╜' character appears as
something unexpected. But to my knowledge, nobody hacked groff for supporting
-t koi8-r (or anything similar).
--
Mike
Reply to: