Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 122271

Summary: app-i18n/man-pages-pl and utf-8 system
Product: Gentoo Linux Reporter: Damian Szeluga <damjanek>
Component: New packagesAssignee: Michal Januszewski (RETIRED) <spock>
Status: RESOLVED CANTFIX    
Severity: normal CC: arfrever, gentoo, rane
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: man-pages-pl.patch
man-pages-pl.patch

Description Damian Szeluga 2006-02-09 09:16:33 UTC
When UNICODE in /etc/rc.conf is set to "yes", man-pages-pl ebuild should recode all the manuals to utf-8 encoding.
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2006-02-14 14:12:02 UTC
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.
Comment 2 Damian Szeluga 2006-02-15 07:07:47 UTC
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.

Comment 3 Michal Januszewski (RETIRED) gentoo-dev 2006-04-09 07:55:45 UTC
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?
Comment 4 Damian Szeluga 2006-04-10 06:22:35 UTC
I think, that should be done by developers, not users. I'd be glad, if you would take care about that.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-07-26 15:19:47 UTC
*** Bug 186691 has been marked as a duplicate of this bug. ***
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-26 15:24:22 UTC
Created attachment 126075 [details, diff]
man-pages-pl.patch
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-26 15:26:35 UTC
In case of Groff, version 1.20* works correctly.
Comment 8 Michal Januszewski (RETIRED) gentoo-dev 2007-07-29 15:53:08 UTC
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.
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-29 15:58:53 UTC
(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.

http://www.ffta.host.sk/Eaedificata/index.html
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-29 16:03:58 UTC
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.
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-29 16:07:55 UTC
Created attachment 126355 [details, diff]
man-pages-pl.patch

Fixed patch.
Comment 12 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-29 16:15:19 UTC
(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.
Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-29 16:18:03 UTC
$ 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".
Comment 14 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-29 16:22:32 UTC
You can read http://www.gnu.org/software/groff -> http://www.groff-wiki.info -> http://www.port.de/cgi-bin/groff/PreProcessors
Comment 15 Michal Januszewski (RETIRED) gentoo-dev 2007-07-29 17:10:13 UTC
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.
Comment 16 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-29 20:19:44 UTC
(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.
Comment 17 Michal Januszewski (RETIRED) gentoo-dev 2007-10-12 21:15:13 UTC
Closing as CANTFIX. Feel free to reopen if a UTF-8 enabled groff version appears in Portage one day.
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2008-01-30 22:09:07 UTC
*** Bug 208200 has been marked as a duplicate of this bug. ***