Skip to content

Instantly share code, notes, and snippets.

@false-git
Created January 7, 2014 01:34
Show Gist options
  • Save false-git/8293307 to your computer and use it in GitHub Desktop.
Save false-git/8293307 to your computer and use it in GitHub Desktop.
FreeBSD 9 のmanを日本語対応するパッチ
*** /usr/bin/man Sat Dec 21 23:16:42 2013
--- /usr/local/bin/man Tue Jan 7 09:57:10 2014
***************
*** 330,336 ****
*) nroff_dev="ascii" ;;
esac
! NROFF="$NROFF -T$nroff_dev"
EQN="$EQN -T$nroff_dev"
# Iff the manpage is from the locale and not just the charset,
--- 330,336 ----
*) nroff_dev="ascii" ;;
esac
! NROFF="$NROFF -D$nroff_dev -T$nroff_dev"
EQN="$EQN -T$nroff_dev"
# Iff the manpage is from the locale and not just the charset,
***************
*** 393,399 ****
decho "Command: $cattool $manpage | $pipeline"
ret=0
else
! eval "$cattool $manpage | $pipeline"
ret=$?
fi
}
--- 393,399 ----
decho "Command: $cattool $manpage | $pipeline"
ret=0
else
! eval "$cattool $manpage | nkf -w | $pipeline"
ret=$?
fi
}
***************
*** 933,943 ****
# User's PATH setting decides on the groff-suite to pick up.
EQN=eqn
! NROFF='groff -S -P-h -Wall -mtty-char -man'
PIC=pic
REFER=refer
TBL=tbl
! TROFF='groff -S -man'
VGRIND=vgrind
LOCALE=/usr/bin/locale
--- 933,943 ----
# User's PATH setting decides on the groff-suite to pick up.
EQN=eqn
! NROFF='/usr/local/bin/groff -S -P-h -Wall -mtty-char -man'
PIC=pic
REFER=refer
TBL=tbl
! TROFF='/usr/local/bin/groff -S -man'
VGRIND=vgrind
LOCALE=/usr/bin/locale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment