Package: aptitude Version: 0.4.3-1 Severity: important Tags: patch l10n
Hi, KISE Hiroshi found[1] that the Japanese manpage aptitude(8) is UTF-8-encoded. Since manpages do not have encoding information, Japanese manpages under /usr/share/man/ja are all handled as EUC-JP-encoded files by the man-db program[2], and UTF-8-encoded ones cannot displayed correctly (nearly all the characters turn into garbage). I've created a patch to fix it and attach here, with the severity "important" since manpages are important resources for users. This bug is resulted from an incompatible change in DocBook XSL 1.69.0 that a parameter to specify output manpage encoding changed from chunker.output.encoding to man.output.encoding[3] (Sorry, I always checked with an older version of DocBook XSL). So, aptitude should specify a version of docbook-xsl to Build-Depends on. Also, it is better to fix doc/aptitude-man.xsl accordingly, which uses chunker.output.encoding but is not affected since it specifies encoding as UTF-8, the default output manpage encoding in DocBook XSL >=1.69.0. [1] http://lists.debian.or.jp/debian-users/200610/msg00008.html (in Japanese) [2] man-db src/encodings.c [3] /usr/share/doc/docbook-xsl/changelog.gz Thanks, -nori -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.8-3-686 Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP) Versions of packages aptitude depends on: ii apt [libapt-pkg-libc6 0.5.28.6 Advanced front-end for dpkg ii libc6 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an ii libgcc1 1:3.4.3-13sarge1 GCC support library ii libncurses5 5.4-4 Shared libraries for terminal hand ii libsigc++-1.2-5c102 1.2.5-4 type-safe Signal Framework for C++ ii libstdc++5 1:3.3.5-13 The GNU Standard C++ Library v3 -- no debconf information
Index: doc/ja/aptitude-man-ja.xsl =================================================================== --- doc/ja/aptitude-man-ja.xsl (revision 981) +++ doc/ja/aptitude-man-ja.xsl (revision 982) @@ -5,7 +5,7 @@ <!-- override settings in /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl. --> -<xsl:param name="chunker.output.encoding" select="'euc-jp'"/> +<xsl:param name="man.output.encoding" select="'euc-jp'"/> <xsl:output method="text" encoding="euc-jp" indent="no"/>