Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519466 - app-i18n/nkf-2.1.3 - japanese manpage is broken
Summary: app-i18n/nkf-2.1.3 - japanese manpage is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL: http://sourceforge.jp/ticket/browse.p...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-08-08 23:22 UTC by Takurou Kitagawa
Modified: 2014-08-28 08:17 UTC (History)
0 users

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


Attachments
correct nkf.1j, which I have downloaded from the upstream repository. (nkf.1j,23.59 KB, application/octet-stream)
2014-08-08 23:37 UTC, Takurou Kitagawa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Takurou Kitagawa 2014-08-08 23:22:47 UTC
nkf 2.1.3 contains Japanese manpage "nkf.1j", but it is broken.
This is the upstream's bug, which is reported in:
  http://sourceforge.jp/ticket/browse.php?group_id=248&tid=32546
  (the ticket is written in Japanse)


Reproducible: Always

Steps to Reproduce:
1. emerge app-i18n/nkf
2. bzcat /usr/share/man/ja/man1/nkf.1.bz2 | less
3. If you have configured /etc/man.conf to handle Japanese manpages, 
   try "LANG=ja_JP.eucJP man nkf"

Actual Results:  
Almost all of Japanese text has been replaced with "XXXXXX", so I cannot read manpage.


Expected Results:  
I can read Japanese manpage.


I have downloaded "nkf.1j" from the upstream repository, and replaced the file.
Comment 1 Takurou Kitagawa 2014-08-08 23:37:03 UTC
Created attachment 382564 [details]
correct nkf.1j, which I have downloaded from the upstream repository.

You can also get the same file from upstream repository.
http://sourceforge.jp/projects/nkf/scm/git/nkf/commits/c778b37ecf951d50195768deea665a3ebc9f9af6

The file contains Japanese text (UTF-8).

Here is a patch to nkf-2.1.3.ebuild.
(It contains another fix about issue #519464)

--- nkf-2.1.3.ebuild.bak        2014-08-09 07:53:09.000000000 +0900
+++ nkf-2.1.3.ebuild    2014-08-09 08:32:47.000000000 +0900
@@ -21,7 +21,9 @@
                -e '/^CFLAGS/{s|-g -O2||;s|=|+=|;}' \
                -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
                Makefile || die
-
+
+       cp -f "${FILESDIR}"/nkf.1j "${S}"/nkf.1j
+
        if use python; then
                mv "${WORKDIR}/NKF.python" "${S}" || die
                epatch "${FILESDIR}"/${P}-strip.patch
Comment 2 Naohiro Aota gentoo-dev 2014-08-28 08:17:51 UTC
Thanks for the patch. I've added the change into the tree. (New man page was too large to put it in the tree, so I put it on my dev.gentoo.org space)