* mdocml: Use a standard locale name, "UTF-8" is an ugly non-standard
@ 2013-06-01 14:27 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-06-01 14:27 UTC (permalink / raw)
To: source
Log Message:
-----------
Use a standard locale name, "UTF-8" is an ugly non-standard alias
that doesn't work on OpenBSD.
OK tedu@ naddy@
Modified Files:
--------------
mdocml:
term_ascii.c
Revision Data
-------------
Index: term_ascii.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/term_ascii.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -Lterm_ascii.c -Lterm_ascii.c -u -p -r1.20 -r1.21
--- term_ascii.c
+++ term_ascii.c
@@ -73,7 +73,6 @@ ascii_init(enum termenc enc, char *outop
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 *outop
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;
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-01 14:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-01 14:27 mdocml: Use a standard locale name, "UTF-8" is an ugly non-standard schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).