diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-17 14:38:34 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-17 14:38:34 +0000 |
commit | 0587ad80d46d89f36315c37bbd67cf8899708b8d (patch) | |
tree | f6e1521213cb40a637bdb175e43f121249534ba3 /term_ps.c | |
parent | 79f16537cd09bc054f9d18169708d63030803d98 (diff) | |
download | mandoc-0587ad80d46d89f36315c37bbd67cf8899708b8d.tar.gz mandoc-0587ad80d46d89f36315c37bbd67cf8899708b8d.tar.zst mandoc-0587ad80d46d89f36315c37bbd67cf8899708b8d.zip |
Add mode for -Tlocale. This mode, with this commit, behaves exactly
like -Tascii. While adding this, inline term_alloc() (was a one-liner),
remove some switches around the terminal encoding for the symbol table
(unnecessary), and split out ascii_alloc() into ascii_init(), which is
also called from locale_init().
Diffstat (limited to 'term_ps.c')
-rw-r--r-- | term_ps.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: term_ps.c,v 1.50 2011/05/15 00:58:48 kristaps Exp $ */ +/* $Id: term_ps.c,v 1.51 2011/05/17 14:38:34 kristaps Exp $ */ /* * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -434,7 +434,8 @@ pspdf_alloc(char *outopts) const char *pp; char *v; - p = term_alloc(TERMENC_ASCII); + p = mandoc_calloc(1, sizeof(struct termp)); + p->enc = TERMENC_ASCII; p->ps = mandoc_calloc(1, sizeof(struct termp_ps)); p->advance = ps_advance; |