=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/cgi.c,v retrieving revision 1.74 retrieving revision 1.75 diff -u -r1.74 -r1.75 --- src/usr.bin/mandoc/cgi.c 2016/07/11 22:46:57 1.74 +++ src/usr.bin/mandoc/cgi.c 2016/07/31 23:35:26 1.75 @@ -1,4 +1,4 @@ -/* $OpenBSD: cgi.c,v 1.74 2016/07/11 22:46:57 schwarze Exp $ */ +/* $OpenBSD: cgi.c,v 1.75 2016/07/31 23:35:26 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2016 Ingo Schwarze @@ -798,7 +798,8 @@ } mchars_alloc(); - mp = mparse_alloc(MPARSE_SO, MANDOCLEVEL_BADARG, NULL, req->q.manpath); + mp = mparse_alloc(MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1, + MANDOCLEVEL_BADARG, NULL, req->q.manpath); mparse_readfd(mp, fd, file); close(fd);