When UNICODE in /etc/rc.conf is set to "yes", man-pages-pl ebuild should recode all the manuals to utf-8 encoding.
I don't think using rc.conf for this is a good idea. A better solution would be to use the 'unicode' flag. I'll do some checks on this and see whether it works properly when the manpages are converted to UTF-8.
The problem is, that 'unicode' USE flag isn't a prove, that we actually use unicode system.
To show up utf-encoded manpages correctly, it will be also useful: http://hoth.amu.edu.pl/~d_szeluga/groff-utf8.tar.bz2, as groff itself, doesn't work with utf.
I don't think we should create a new package just to have a simple groff_utf8 wrapper installed in the system. Could you please file a bug against groff and see whether groff_utf8 could be intergrated with sys-apps/groff, perhaps so that it is installed only when the user has the 'unicode' USE flag enabled on their system?
I think, that should be done by developers, not users. I'd be glad, if you would take care about that.
*** Bug 186691 has been marked as a duplicate of this bug. ***
Created attachment 126075 [details, diff]
In case of Groff, version 1.20* works correctly.
Version 1.20? Where did you get that from? Unless I'm missing something, groff-1.19.2 seems to be the latest version available.
(In reply to comment #8)
> Version 1.20? Where did you get that from? Unless I'm missing something,
> groff-1.19.2 seems to be the latest version available.
Now I think that ISO-8859-2 shouldn't be treated as native encoding in Polish, so UTF-8 man pages should be installed into /usr/share/man/pl.
Created attachment 126355 [details, diff]
(In reply to comment #8)
I forgot to mention that the appropriate line in /etc/man.conf should be:
NROFF /usr/bin/preconv | /usr/bin/nroff -mandoc -c
preconv is a text preprocessor belonging to newer versions of Groff.
$ preconv --help
usage: preconv [ option ] [ files ]
-d show debugging messages
-e encoding specify input encoding
-h print this message
-r don't add .lf requests
-v print version number
The default encoding is `UTF-8'.
So "/usr/bin/preconv" is equal to "/usr/bin/preconv -e UTF-8".
You can read http://www.gnu.org/software/groff -> http://www.groff-wiki.info -> http://www.port.de/cgi-bin/groff/PreProcessors
Hmm.. That's an unofficial CVS ebuild for groff that you have there. I guess there is not much point of patching man-pages-pl until we get a utf8-enabled groff into Portage.
If the CVS code is reasonably stable, perhaps it would be possible to create a snapshot and add an ebuild for it to the tree. If you think this is the case, please file a bug for a groff version bump and add it as a dependency of this bug.
(In reply to comment #15)
> Hmm.. That's an unofficial CVS ebuild for groff that you have there. I guess
> there is not much point of patching man-pages-pl until we get a utf8-enabled
> groff into Portage.
OK. I added patched man-pages-pl to that repository.
Closing as CANTFIX. Feel free to reopen if a UTF-8 enabled groff version appears in Portage one day.
*** Bug 208200 has been marked as a duplicate of this bug. ***