From 19125f1325c3d8cc19fa74015cf8db567a55a46e Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 1 Jun 2013 14:27:20 +0000 Subject: Use a standard locale name, "UTF-8" is an ugly non-standard alias that doesn't work on OpenBSD. OK tedu@ naddy@ --- term_ascii.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/term_ascii.c b/term_ascii.c index 0cc8ac9d..b2e88b9c 100644 --- a/term_ascii.c +++ b/term_ascii.c @@ -73,7 +73,6 @@ ascii_init(enum termenc enc, char *outopts) struct termp *p; p = mandoc_calloc(1, sizeof(struct termp)); - p->enc = enc; p->tabwidth = 5; p->defrmargin = 78; @@ -93,7 +92,7 @@ ascii_init(enum termenc enc, char *outopts) if (TERMENC_ASCII != enc) { v = TERMENC_LOCALE == enc ? setlocale(LC_ALL, "") : - setlocale(LC_CTYPE, "UTF-8"); + setlocale(LC_CTYPE, "en_US.UTF-8"); if (NULL != v && MB_CUR_MAX > 1) { p->enc = enc; p->advance = locale_advance; -- cgit