From ae85c53a20e295bcb9eecc8a2d24955c35392839 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 17 May 2011 14:38:34 +0000 Subject: 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(). --- term_ps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'term_ps.c') diff --git a/term_ps.c b/term_ps.c index 8047407d..91402ff4 100644 --- a/term_ps.c +++ b/term_ps.c @@ -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; -- cgit