=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/term_ascii.c,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- src/usr.bin/mandoc/term_ascii.c 2018/11/28 14:23:02 1.49 +++ src/usr.bin/mandoc/term_ascii.c 2019/07/19 21:45:37 1.50 @@ -1,4 +1,4 @@ -/* $OpenBSD: term_ascii.c,v 1.49 2018/11/28 14:23:02 schwarze Exp $ */ +/* $OpenBSD: term_ascii.c,v 1.50 2019/07/19 21:45:37 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2017, 2018 Ingo Schwarze @@ -34,6 +34,8 @@ #include "manconf.h" #include "main.h" +#define UTF8_LOCALE "en_US.UTF-8" + static struct termp *ascii_init(enum termenc, const struct manoutput *); static int ascii_hspan(const struct termp *, const struct roffsu *); @@ -90,7 +92,7 @@ v = enc == TERMENC_LOCALE ? setlocale(LC_CTYPE, "") : - setlocale(LC_CTYPE, "en_US.UTF-8"); + setlocale(LC_CTYPE, UTF8_LOCALE); /* * We only support UTF-8,