Avoid calling chn_wrfeed with an empty soft buffer
[dragonfly.git] / gnu / usr.bin / groff / tmac / patches / troffrc.no_obj.patch
CommitLineData
dbf63eef
JR
1$DragonFly: src/gnu/usr.bin/groff/tmac/patches/troffrc.no_obj.patch,v 1.1 2005/09/01 20:47:14 asmodai Exp $
2
3--- troffrc 2005-08-31 14:28:07.000000000 +0200
4+++ troffrc 2005-08-31 15:56:52.000000000 +0200
5@@ -19,6 +19,7 @@
6 .do ds troffrc!latin1 tty.tmac
7 .do ds troffrc!utf8 tty.tmac
8 .do ds troffrc!cp1047 tty.tmac
9+.do ds troffrc!koi8-r tty.tmac
10 .do ds troffrc!lj4 lj4.tmac
11 .do ds troffrc!lbp lbp.tmac
12 .do ds troffrc!html html.tmac
4a1b183b
JL
13@@ -30,7 +30,10 @@
14 .\" Test whether we work under EBCDIC and map the no-breakable space
15 .\" character accordingly.
dbf63eef
JR
16 .do ie '\[char97]'a' \
17-. do tr \[char160]\~
18+. ie '\*[.T]'koi8-r' \
19+. do tr \[char154]\~
20+. el \
21+. do tr \[char160]\~
22 .el \
23 . do tr \[char65]\~
24 .
4a1b183b 25@@ -40,6 +40,8 @@
dbf63eef
JR
26 .\" Load hyphenation patterns and exceptions.
27 .do hpf hyphen.us
28 .do hpfa hyphenex.us
29+.if '\*[.T]'koi8-r' \
30+. do hpfa hyphen.ru
31 .
4a1b183b 32 .\" Handle paper formats.
dbf63eef 33 .do mso papersize.tmac
4a1b183b
JL
34@@ -47,4 +49,12 @@
35 .\" Handle PS images.
36 .do mso pspic.tmac
dbf63eef
JR
37 .
38+.\" Disable SGR support in grotty(1).
39+.if n \{\
40+. do nop \X'tty: sgr 0'
41+. sp -1
42+. nr nl 0-1
43+. nr % -1
44+.\}
45+.
46 .\" Don't let blank lines creep in here.