Package: rpm Version: 4.4.1-5 Severity: minor Tags: patch Hello,
Redhat distributes UTF-8 man pages. On Debian, the man pages must be encoded according to the charset defined in man-db (src/encodings.c). That is to say EUC-JP, EUC-KR and KOI8-R respectively for the Japanese, Korean and Russian man pages. I don't think there is a problem with the other languages. The attached patch adds a debian/recode_manpages.sh script, called in the binary-arch: rule of debian/rules. Presently, LANG=ja LC_ALL=ja_JP.UTF-8 man -Lja rpm > /dev/null returns tons of "warning: can't find numbered character" Recoding the manpage fixes these warnings. Best Regards, -- Nekral
diff -rauN ../orig/rpm-4.4.1/debian/recode_manpages.sh ./rpm-4.4.1/debian/recode_manpages.sh --- ../orig/rpm-4.4.1/debian/recode_manpages.sh 1970-01-01 01:00:00.000000000 +0100 +++ ./rpm-4.4.1/debian/recode_manpages.sh 2006-01-25 22:04:54.000000000 +0100 @@ -0,0 +1,20 @@ +#!/bin/sh + +# Upstream man pages are UTF-8encoded. +# The man pages need to be recoded according to the encodings used in Debian. +# (defined in src/encodings.c in man-db) + +echo "ja EUC-JP + ko EUC-KR + ru KOI8-R" | +while read lang encoding +do + echo "recoding lang: $lang to $encoding" + for page in debian/tmp/usr/share/man/$lang/man[1-8]/* + do + echo "recoding $page" + iconv -t $encoding -f UTF8 < $page > $page.recoded + mv $page.recoded $page + done +done + diff -rauN ../orig/rpm-4.4.1/debian/rules ./rpm-4.4.1/debian/rules --- ../orig/rpm-4.4.1/debian/rules 2006-01-25 21:23:57.000000000 +0100 +++ ./rpm-4.4.1/debian/rules 2006-01-26 00:53:03.000000000 +0100 @@ -78,6 +78,9 @@ chmod 644 debian/tmp/usr/lib/rpm/Specfile.pm chmod -R 644 debian/tmp/usr/lib/python2.3/site-packages/rpmdb/ chmod 644 debian/tmp/usr/lib/python2.3/site-packages/rpm/__init__.py + # Recode the (translated) manpages according to the encoding expected + # on Debian + /bin/sh debian/recode_manpages.sh # rpmdiff.cgi is crap that I don't want installed dh_install -X rpmdiff.cgi dh_link usr/share/man/man8/rpm.8 usr/share/man/man8/rpmdb.8 \