summaryrefslogtreecommitdiffstats
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
commitd4ebaa0831cda5cc57b037351bd6504d3c4d3fff (patch)
tree5196411adebb8bc75eb0f875620538214a531fd3 /configure.local.example
parent0d9bd7d60231be1d0bb037d4fec130b0b01ad128 (diff)
downloadmandoc-d4ebaa0831cda5cc57b037351bd6504d3c4d3fff.tar.gz
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.example7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.local.example b/configure.local.example
index 0fa3d3cb..e5d0f7a8 100644
--- a/configure.local.example
+++ b/configure.local.example
@@ -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