summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-02 11:31:51 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-02 11:31:51 +0000
commit17a296b2f4d6fe68af69dd2678f75850c19049e2 (patch)
tree0cd4e649b509f77e995a33e3b15cd03aabd65eeb /main.c
parent87da52fa4d197ae01cc43d4f541173f39c966db8 (diff)
downloadmandoc-17a296b2f4d6fe68af69dd2678f75850c19049e2.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index e6afc274..a9d41285 100644
--- a/main.c
+++ b/main.c
@@ -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;