From: schwarze Date: Fri, 23 Oct 2015 14:49:13 +0000 (+0000) Subject: apply bold and italic to all non-ASCII Unicode codepoints, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=63edb084261b7a932a85515a6b95cff1446a9b7c;p=openbsd apply bold and italic to all non-ASCII Unicode codepoints, fixing input like \fB\('e; issue reported by bentley@ --- 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 * Copyright (c) 2010-2015 Ingo Schwarze @@ -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) {