On Fri, Oct 03, 2008 at 03:28:28PM +0300, Niko Tyni wrote: > Colin, I can't really get man to work with cyrillic documents. As an > example, the attached ru.pod from #492037 looks fine after 'pod2man > --utf8', but 'man -l ru.man' just drops all the cyrillic characters. > Any ideas? Is this supposed to work at all?
Due to groff's inability to take Unicode input in most cases at the moment, man needs to know the language of the manual page in order to recode it back to a legacy encoding for formatting by groff. It does this either by relying on it being in a directory structure that looks like that used for translated manual pages, or else by guessing based on the locale. Thus, you can either: mkdir -p man/ru/man1 mv ru.man man/ru/man1/ man -l man/ru/man1/ru.man or: # make sure the ru_RU.UTF-8 locale is generated LC_ALL=ru_RU.UTF-8 man -l ru.man If groff Unicode support ever gets finished (it's been getting asymptotically close, with only one major special-purpose piece left in order to avoid important regressions for Japanese users) then this should go away. > The same applies to debconf.ru.1.pod (which needs an "=encoding koi8-r" > at the top first.) Actually I was just going to recode all that to UTF-8, as is done in debconf's Subversion repository. Cheers, -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]