bin/166130: i can not read japanese manual on ja_JP.UTF-8

akira noda you.akira.noda at gmail.com
Thu Mar 15 02:30:02 UTC 2012


>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 at 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:


More information about the freebsd-bugs mailing list