Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173165 - man, groff and man-pages-ru doesn't support UTF8
Summary: man, groff and man-pages-ru doesn't support UTF8
Status: RESOLVED DUPLICATE of bug 121502
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-02 17:25 UTC by spiritus
Modified: 2007-04-04 07:28 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description spiritus 2007-04-02 17:25:16 UTC
"man getpid", "man dd", etc. show unreadable man pages if man-pages-ru installed and system locale is UTF8(ru_RU.UTF-8). Even after I have manually converted man-pages-ru from original KOI8-R charset to UTF8 the localized manual pages have not been displayed correctly.

Here is man page manually converted to UTF8 by iconv:

$ bzcat /usr/share/man/ru/man1/dd.1.bz2 |head
.\" Copyright Andries Brouwer, Ragnar Hojland Espinosa and A. Wik, 1998.
.\"
.\" This file may be copied under the conditions described
.\" in the LDP GENERAL PUBLIC LICENSE, Version 1, September 1998
.\" that should have been distributed together with this file.
.\"
.\" Дата последней коррекции перевода 30.11.2003
.\" Перевод с английского выполнил Виктор Вислобоков <corochoone@perm.ru>
.\" http://www.linuxshare.ru/projects/trans/mans.html
.\" Вычитано и скорректировано by alexm@hsys.msk.ru для проекта

And this is unreadable:
$ bzcat /usr/share/man/ru/man1/dd.1.bz2 |nroff -c -mandoc|head
DD(1)                                                                    DD(1)



ÐÐЯ
       dd - пÑеобÑазоваÑÑ Ð¸ копиÑоваÑÑ Ñайл

ÐÐÐÐÐ
       dd   [--help]   [--version]  [if=Ñайл]  [of=Ñайл]  [ibs=байÑÑ]
       [obs=байÑÑ]    [bs=байÑÑ]    [cbs=байÑÑ]     [skip=блоки]

And this:

$ bzcat /usr/share/man/ru/man1/dd.1.bz2 |nroff -c -Tutf8 -mandoc|head
DD(1)                                                                    DD(1)



ÐÐЯ
       dd - пÑеобÑазоваÑÑ Ð¸ копиÑоваÑÑ Ñайл

ÐÐÐÐÐ
       dd   [--help]   [--version]  [if=Ñайл]  [of=Ñайл]  [ibs=байÑÑ]
       [obs=байÑÑ]    [bs=байÑÑ]    [cbs=байÑÑ]     [skip=блоки]

And this command shows half of national characters correctly and half of characters have been broken:

$ bzcat /usr/share/man/ru/man1/dd.1.bz2 |nroff -c -Tlatin1 -mandoc|head
DD(1)                                                                    DD(1)



�Я
       dd - п�об�зова� и копи�ва� �йл

��
         dd   [--help]   [--version]  [if=]  [of=]  [ibs=]
       [obs=]    [bs=]    [cbs=]     [skip=]

And "man" doesn't correctly work with the UTF8 locale also - all national characters are broken:

$ man bleah
��� ��bleah ���������
$ man --help
man, ��� 1.6d
������� man [-adfhktwW] [���] [-M ��] [-P ������ [-S ���]
        [-m ���� [-p ���] ���� ...

  a : �����������
                   c : � ������ cat-��
  d : ���� ����� �����
  D : � �, ���-d, � ������� ����������
                                        f : � � ��� ���whatis(1)
  h : ���������
  k : � � ��� ���apropos(1)
  K : �������� �� �����
                         t : ������ troff, �������������� �����
  w : ���������� ���������� ������������
      (�� ���� � ���� � ������� ������ ���)
  W : ����-w, � ����� ��� ������

  C ��    : ������ `��' ����� ������������
                                            M ��    : ����� �� ��� �����������`��'
  P ������: ������ �����`������ ������������
                                              S ���  : ��������������� ����
  m ����: �������������������� ����
                                     p ��� : ���, ��������������� �����
               e - [n]eqn(1)   p - pic(1)    t - tbl(1)
               g - grap(1)     r - refer(1)  v - vgrind(1)


Reproducible: Always

Steps to Reproduce:




$ emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 22 Mar 2007 01:47:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/service"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php4/ext-active/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=prescott -O2 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.mirrors.pair.com/ http://src.gentoo.pl http://gentoo.chem.wisc.edu/gentoo/"
LANG="ru_RU.UTF-8"
LINGUAS="en ru"
PKGDIR="/usr/portage/packages"
...
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-04 07:28:43 UTC

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