aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configure.local.example
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-07-31 09:29:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-07-31 09:29:13 +0000
commit89a1a1be54eefe77cc04401526ea22323c644115 (patch)
tree8071c288f5714fd1fbb80b7a53e500e58014b3e7 /configure.local.example
parent7f6377086cfbc884dfcb75e0a4075d0f0cf8b73d (diff)
downloadmandoc-89a1a1be54eefe77cc04401526ea22323c644115.tar.gz
mandoc-89a1a1be54eefe77cc04401526ea22323c644115.tar.zst
mandoc-89a1a1be54eefe77cc04401526ea22323c644115.zip
Autodetect a suitable locale for -Tutf8 mode,
and allow overriding it manually. Based on a patch from Svyatoslav Mishyn <juef at openmailbox dot org> tweaked by me. The idea originally came up in a conversation with Markus Waldeck.
Diffstat (limited to 'configure.local.example')
-rw-r--r--configure.local.example9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.local.example b/configure.local.example
index 18a84fbd..c1c7be93 100644
--- a/configure.local.example
+++ b/configure.local.example
@@ -1,4 +1,4 @@
-# $Id: configure.local.example,v 1.17 2016/07/20 14:03:06 schwarze Exp $
+# $Id: configure.local.example,v 1.18 2016/07/31 09:29:13 schwarze Exp $
#
# Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@openbsd.org>
#
@@ -48,6 +48,13 @@ HAVE_WCHAR=1
HAVE_WCHAR=0
+# For -Tutf8 mode, mandoc needs to set an arbitrary locale having
+# a UTF-8 character set. If autodetection of a suitable locale
+# fails or selects an undesirable locale, you can manually choose
+# the locale for -Tutf8 mode:
+
+UTF8_LOCALE=en_US.UTF-8
+
# When man(1) or apropos(1) is called without -m and -M options,
# MANPATH is not set in the environment, and man.conf(5) is not
# available, manuals are searched for in the following directory