1--- tmac/troffrc.orig	Wed Jan 25 13:04:06 2006
2+++ tmac/troffrc	Wed Jan 25 22:35:38 2006
3@@ -38,9 +38,17 @@
4 .\" Load hyphenation patterns from `hyphen.us' (in the tmac directory).
5 .do hpf hyphen.us
6 .
7+.\" Disable SGR support in grotty(1).
8+.if n \{\
9+.  do nop \X'tty: sgr 0'
10+.  sp -1
11+.  nr nl 0-1
12+.  nr % -1
13+.\}
14 .\" For CJK hack. The hardcoded list of locales is especially nasty, but
15 .\" getting the locale charmap requires a troff extension.
16 .ie     "\V[LANG]"ja_JP.eucJP" .do mso euc-jp.tmac
17+.el .ie "\V[LANG]"ja_JP.EUC"   .do mso euc-jp.tmac
18 .el .ie "\V[LANG]"zh_CN"       .do mso gb.tmac
19 .el .ie "\V[LANG]"zh_CN.GBK"   .do mso gb.tmac
20 .el .ie "\V[LANG]"zh_SG"       .do mso gb.tmac
21