]> git.cameronkatri.com Git - mandoc.git/blobdiff - term_ps.c
Add mode for -Tlocale. This mode, with this commit, behaves exactly
[mandoc.git] / term_ps.c
index 50984dc0613abb9c69812550fc2f38a4f6a5db2e..44e492a2ea7d99d462e78db075579cfb1e89ebb7 100644 (file)
--- a/term_ps.c
+++ b/term_ps.c
@@ -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;