diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-02 11:31:51 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-02 11:31:51 +0000 |
commit | 310deef5c2cc84a2ecda907d7fe5a559957b537c (patch) | |
tree | 887f0d43adce1caabfeae873ed3c0b8100a48ae1 /main.c | |
parent | a86ac0ebc7ac7bb8f109952e78973f4cc241904a (diff) | |
download | mandoc-310deef5c2cc84a2ecda907d7fe5a559957b537c.tar.gz mandoc-310deef5c2cc84a2ecda907d7fe5a559957b537c.tar.zst mandoc-310deef5c2cc84a2ecda907d7fe5a559957b537c.zip |
Switch the default output mode from -Tascii to -Tlocale.
This doesn't change anything unless LC_CTYPE is set,
but it helps when running with LC_TYPE=something.UTF-8.
OK tedu@ and earlier positive feedback from:
bentley@ deraadt@ naddy@ stsp@ uqs@freebsd wiz@netbsd
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.200 2014/11/26 21:40:17 schwarze Exp $ */ +/* $Id: main.c,v 1.201 2014/12/02 11:31:51 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011, 2012, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -148,7 +148,7 @@ main(int argc, char *argv[]) /* Parser and formatter options. */ memset(&curp, 0, sizeof(struct curparse)); - curp.outtype = OUTT_ASCII; + curp.outtype = OUTT_LOCALE; curp.wlevel = MANDOCLEVEL_FATAL; options = MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1; defos = NULL; |