diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-06-01 14:27:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-06-01 14:27:20 +0000 |
commit | 19125f1325c3d8cc19fa74015cf8db567a55a46e (patch) | |
tree | d619486309668f0cf20406f48476a355747e867b | |
parent | 0f17fccfbcf02abbf990e787dc4a59b96bce415b (diff) | |
download | mandoc-19125f1325c3d8cc19fa74015cf8db567a55a46e.tar.gz |
Use a standard locale name, "UTF-8" is an ugly non-standard alias
that doesn't work on OpenBSD.
OK tedu@ naddy@
-rw-r--r-- | term_ascii.c | 3 |
1 files changed, 1 insertions, 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; |