diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-10-23 14:49:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-10-23 14:49:14 +0000 |
commit | d59a5e33b335879822a439df26f78ab6f95f7511 (patch) | |
tree | 5719278172e1c9dc5bf138e411f3366c1c4287d1 /usr.bin | |
parent | 41c22b873bd4e4a63adb858aa7015fe2d7a5a380 (diff) |
apply bold and italic to all non-ASCII Unicode codepoints,
fixing input like \fB\('e; issue reported by bentley@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mandoc/term.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/term.c b/usr.bin/mandoc/term.c index 3cb7cdfeaaa..a0227a0cd99 100644 --- a/usr.bin/mandoc/term.c +++ b/usr.bin/mandoc/term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: term.c,v 1.114 2015/10/13 22:57:49 schwarze Exp $ */ +/* $OpenBSD: term.c,v 1.115 2015/10/23 14:49:13 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -562,7 +562,7 @@ encode1(struct termp *p, int c) if (p->col + 7 >= p->maxcols) adjbuf(p, p->col + 7); - f = (c == ASCII_HYPH || isgraph(c)) ? + f = (c == ASCII_HYPH || c > 127 || isgraph(c)) ? p->fontq[p->fonti] : TERMFONT_NONE; if (p->flags & TERMP_BACKBEFORE) { |