Bug 166130 - [patch] man(1): i can not read japanese manual on ja_JP.UTF-8
Summary: [patch] man(1): i can not read japanese manual on ja_JP.UTF-8
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 9.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-15 02:30 UTC by you.akira.noda
Modified: 2017-01-07 21:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description you.akira.noda 2012-03-15 02:30:01 UTC
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

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'
How-To-Repeat: export LANG=ja_JP.UTF-8
man ls
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2017-01-07 21:08:42 UTC
FreeBSD 11+ uses mandoc which supports utf8