Makefile can install man pages in ISO-8859-2 encoding or recode them to UTF-8. The decision is based on LANG or LC_ALL variable content. It looks a little dummy, but groff still doesn't support UTF-8 on input. Therefore I would prefer to let the decison on administrator using unicode USE flag.
Created attachment 105326 [details, diff] Adds unicode USE flag unicode USE flag can drive encoding of installed man pages. It also print some advices howto setup man to see man pages properly
Are you sure "C.UTF-8" is correct? Our localization guide [1] recommends "cs_CZ.UTF-8", I don't have anything like "C.utf-8" on any of my systems. I think the best solution would be to grep `locale -a` for any UTF-8-enabled locale and use it... [1] http://www.gentoo.org/doc/cs/guide-localization.xml
(In reply to comment #2) > Are you sure "C.UTF-8" is correct? You are right. C and POSIX allow only US-ASCII charset. IMHO changing locale is not the best solution (e.g. all programs called from Makefile can complain about illegal locale [even perl refuses to start] or after greping installed locales they can start talking in unexpected language). I try to patch the Makefile.
Created attachment 105941 [details, diff] Makefile uses UTF8 variable instead of LC_ALL and LANG This patch superseds locale driven test. Makefile chose man pages charset on UTF8 variable now. If $UTF8 is equaled to "yes", then man pages will be recoded to the UTF-8.
Created attachment 105943 [details, diff] Support for new makefile charset decision style Previous ebuild patch reworked. Locale variables will be not touched anymore.
Please, get this handled upstream if you dislike what they are doing.