From nobody@FreeBSD.org  Thu Mar 15 02:23:58 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 5F2A0106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Mar 2012 02:23:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 4EC178FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Mar 2012 02:23:58 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q2F2NwUk063975
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Mar 2012 02:23:58 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q2F2Nw0D063943;
	Thu, 15 Mar 2012 02:23:58 GMT
	(envelope-from nobody)
Message-Id: <201203150223.q2F2Nw0D063943@red.freebsd.org>
Date: Thu, 15 Mar 2012 02:23:58 GMT
From: akira noda <you.akira.noda@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: i can not read japanese manual on ja_JP.UTF-8
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         166130
>Category:       bin
>Synopsis:       [patch] man(1): i can not read japanese manual on ja_JP.UTF-8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 15 02:30:01 UTC 2012
>Closed-Date:    
>Last-Modified:  Mon Apr 02 06:39:12 UTC 2012
>Originator:     akira noda
>Release:        9.0-RELEASE
>Organization:
Kansai BSD User Group(K*BUG)
>Environment:
FreeBSD chili.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
I can not read japanese manual on man command on UTF-8.

japanese manual is converted from EUC-JP one by flowing.

#install eucJP one
pkg_add -r http://home.jp.freebsd.org/%7Ekogane/JMAN9/ja-man-doc-9.0.20120115.tbz 
#convert
cd /usr/shere/man
cp -r ja ja_JP.UTF-8
find ja_JP.UTF-8 -name '*.gz' -exec gunzip '{}' ';'
find ja_JP.UTF-8 -name '*.[0-9]' -exec nkf -Ew --overwrite '{}' ';'
find ja_JP.UTF-8 -name '*.[0-9]' -exec gzip '{}' ';'
nkf -Ew --overwrite ja_JP.UTF-8/whatis
>How-To-Repeat:
export LANG=ja_JP.UTF-8
man ls
>Fix:
You need new groff(v1.21) in this workaround.
So, at first make install new groff via ports.

And do flowing patch on man
This patch simply replace system groff with new one,
and add -D option.

#I don't know well, but anyway  it works.




333c333
< 		NROFF="$NROFF -T$nroff_dev"
---
> 		NROFF="$NROFF -D$nroff_dev -T$nroff_dev"
936c936
< NROFF='groff -S -P-h -Wall -mtty-char -man'
---
> NROFF='/usr/local/bin/groff -S -P-h -Wall -mtty-char -man'
940c940
< TROFF='groff -S -man'
---
> TROFF='/usr/local/bin/groff -S -man'


>Release-Note:
>Audit-Trail:
>Unformatted:
