Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104593 - man-pages-ru-0.98 & man-1.6a are incompatible
Summary: man-pages-ru-0.98 & man-1.6a are incompatible
Status: RESOLVED DUPLICATE of bug 126361
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-02 06:25 UTC by Sergey Belyashov
Modified: 2008-02-25 18:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
what I see when install man-pages-ru (view-koi8r-man-page.gif,14.12 KB, image/gif)
2005-09-12 06:48 UTC, Sergey Belyashov
Details
what I see if one of pages encode to the utf8 (view-utf8-man-page.gif,14.68 KB, image/gif)
2005-09-12 06:49 UTC, Sergey Belyashov
Details
man-1.6b-i18n_nroff.patch (man-1.6b-i18n_nroff.patch,7.38 KB, patch)
2005-11-10 11:55 UTC, SpanKY
Details | Diff
new nroff version which fixes problems with russian man pages on unicode boxes (nroff,2.63 KB, text/plain)
2005-11-13 08:42 UTC, Sergey Belyashov
Details
sys-apps/groff/groff-1.19.2.ebuild (groff-1.19.2.ebuild,2.38 KB, text/plain)
2006-07-04 11:54 UTC, Sergey Belyashov
Details
sys-apps/groff/files/groff-1.19.2-nroff-manpage.patch (groff-1.19.2-nroff-manpage.patch,1.73 KB, patch)
2006-07-04 11:55 UTC, Sergey Belyashov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Belyashov 2005-09-02 06:25:30 UTC
I am emerge man-pages-ru. Then I try to see that is 'cp': man cp. I see broken 
page (with invalid encoding).

Reproducible: Always
Steps to Reproduce:
1. setup You system with unicode support (locales, fonts (terminus), LANG)
2. # emerge man-pages-ru
3. $ LANG="ru_RU.utf8" man cp

Actual Results:  
Unredable page. :(

Expected Results:  
Redable page. :)

All other programms (for example mc) looks as need.
I try to encode these man pages to the utf8, but result is unsuccessfull - I can 
see this page only in unformatted kind.
Comment 1 Sergey Belyashov 2005-09-02 11:50:07 UTC
Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.
6.12-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/
share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://192.168.14.25/os/linux/distributives/gentoo.mirror/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="en ru"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.14.25/gentoo-portage"
USE="X a52 acpi alsa amd64 arts avi berkdb bitmap-fonts cdr crypt cups dga dts 
dvd dvdr dvdread encode esd fam ffmpeg foomaticdb fortran gdbm gif gnome gpm 
gstreamer gtk gtk2 hal imagemagick imlib ipv6 java jpeg junit kde kdeenablefinal 
lm_sensors lzw lzw-tiff mad mbox motif mp3 mpeg ncurses nls nvidia ogg oggvorbis 
opengl oss pam pam_console pdflib perl png python qt quicktime readline rtc 
samba sdl slang ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb 
userlocales v4l2 vorbis xinerama xml2 xmms xpm xv xvid xvmc zlib linguas_en 
linguas_ru userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS

I think, may be also be error in man (it don't want show unicode pages 
[converted with iconv manually] too)?
Comment 2 Sergey Belyashov 2005-09-12 06:48:40 UTC
Created attachment 68246 [details]
what I see when install man-pages-ru
Comment 3 Sergey Belyashov 2005-09-12 06:49:38 UTC
Created attachment 68247 [details]
what I see if one of pages encode to the utf8
Comment 4 Sergey Belyashov 2005-11-10 06:16:19 UTC
I determine that problem is in the one of groff, nroff, troff parts of the man 
package.
For example RH in here FC3 & FC4 use man-1.5p with unicode patch which adds 
convertion of KOI8-R to UTF-8 and some other (for other languages) into the 
sources of man package.
Comment 5 SpanKY gentoo-dev 2005-11-10 09:42:56 UTC
being a little less vague would be helpful

what patch ?  Fedora's man-1.6b contains a man-1.6b-i18n_nroff.patch ...
Comment 6 Sergey Belyashov 2005-11-10 11:17:42 UTC
You are right. I write about man-1.5m2-i18n_nroff.patch. I don't know about man-
1.6b-i18n_nroff.patch, because I don't have access to the related package... But 
I try to search it in the Internet and apply to the man-1.6a...
Comment 7 Sergey Belyashov 2005-11-10 11:54:16 UTC
I try to find man-1.6b-i18n_nroff.patch. But I can't. I try both google and 
yahoo. Also I check Fedora's repository (http://download.fedora.redhat.com/pub/
fedora/linux/) for man-1.6*.src.rpm. Result - nothing.
Can You publish url to this patch?
Comment 8 SpanKY gentoo-dev 2005-11-10 11:55:44 UTC
Created attachment 72589 [details, diff]
man-1.6b-i18n_nroff.patch
Comment 9 Sergey Belyashov 2005-11-10 13:07:43 UTC
Thank's.
I find another way to fix this bug. And it 100% working (I check):
In file /etc/man.conf need to replace line with NROFF definition by (for 
russian):
NROFF     /usr/bin/nroff -Tlatin1 -c -mandoc |iconv -f KOI8-R

This fix (iconv) may be easy included to the /usr/bin/nroff because it is 
script. I try to do it later.
Comment 10 Sergey Belyashov 2005-11-11 12:50:44 UTC
man-1.6b-i18n_nroff.patch is incompatible with man-1.5m-groff-1.18.patch and 
have no effect without special modification of nroff (from groff package) as in 
Fedora Core. Is it need to do?
Comment 11 Sergey Belyashov 2005-11-13 08:42:50 UTC
Created attachment 72830 [details]
new nroff version which fixes problems with russian man pages on unicode boxes

I try to modify nroff (base version I extract from groff-1.19.2). I don't want
create ebuild or patch for groff at this time because changes are very wet.
Any who have problems with charmap of man pages may add to this file two lines:

<language>)
    in_locale=<man pages charmap> ;;
where <language> is output of "locale language" and <man pages charmap> - char
map of man pages. To determine it's need few experiments with iconv...

Also in the /etc/man.conf it's need to add to the line with NROFF definition
parameter --manpage:
NROFF	 /usr/bin/nroff -Tlatin1 -mandoc --manpage
This version of nroff ignores all -T options if --manpage present.
Comment 12 Sergey Belyashov 2006-07-04 11:54:33 UTC
Created attachment 90884 [details]
sys-apps/groff/groff-1.19.2.ebuild

This ebuild uses patch to add new features (see above) to nroff.
Comment 13 Sergey Belyashov 2006-07-04 11:55:07 UTC
Created attachment 90886 [details, diff]
sys-apps/groff/files/groff-1.19.2-nroff-manpage.patch
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2008-02-25 18:41:39 UTC

*** This bug has been marked as a duplicate of bug 126361 ***