summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/mdoc_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-05-29 21:22:19 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-05-29 21:22:19 +0000
commitd49b1d8e996d3b7d5b11ff7f6fec1308da0f4d19 (patch)
tree1b65c2913c52e78683a870fa30aacb6d0da621ec /usr.bin/mandoc/mdoc_term.c
parent34e3b2211040149f713e27fa1d0e45aa08dcaa93 (diff)
Merge release 1.11.3, almost all code by kristaps@:
* Unicode output support (no Unicode input yet, though). * Refactoring: completely handle predefined strings in roff.c. - New function mandoc_escape() replaces a2roffdeco() and mandoc_special(). - Start using mandoc_getarg() in mdoc_argv.c. - Clean up parsing of delimiters in mdoc(7). * And many minor fixes and lots of cleanup.
Diffstat (limited to 'usr.bin/mandoc/mdoc_term.c')
-rw-r--r--usr.bin/mandoc/mdoc_term.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c
index a992ed09cf8..24ca2a3e485 100644
--- a/usr.bin/mandoc/mdoc_term.c
+++ b/usr.bin/mandoc/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.132 2011/04/24 16:22:02 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.133 2011/05/29 21:22:18 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -260,14 +260,7 @@ terminal_mdoc(void *arg, const struct mdoc *mdoc)
p->tabwidth = term_len(p, 5);
if (NULL == p->symtab)
- switch (p->enc) {
- case (TERMENC_ASCII):
- p->symtab = chars_init(CHARS_ASCII);
- break;
- default:
- abort();
- /* NOTREACHED */
- }
+ p->symtab = mchars_alloc();
n = mdoc_node(mdoc);
m = mdoc_meta(mdoc);