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