diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-31 09:29:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-31 09:29:13 +0000 |
commit | 89a1a1be54eefe77cc04401526ea22323c644115 (patch) | |
tree | 8071c288f5714fd1fbb80b7a53e500e58014b3e7 /configure.local.example | |
parent | 7f6377086cfbc884dfcb75e0a4075d0f0cf8b73d (diff) | |
download | mandoc-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.example | 9 |
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 |