Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2012 02:23:58 GMT
From:      akira noda <you.akira.noda@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/166130: i can not read japanese manual on ja_JP.UTF-8
Message-ID:  <201203150223.q2F2Nw0D063943@red.freebsd.org>
Resent-Message-ID: <201203150230.q2F2U1Dq031034@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166130
>Category:       bin
>Synopsis:       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:
>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203150223.q2F2Nw0D063943>