summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/users_guide/using.rst14
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/users_guide/using.rst b/docs/users_guide/using.rst
index 179c34b079..ec62096cd1 100644
--- a/docs/users_guide/using.rst
+++ b/docs/users_guide/using.rst
@@ -1665,7 +1665,13 @@ Other environment variables
.. index::
single: environment variables
-GHC can also be configured using environment variables. Currently the only
-variable it supports is ``GHC_NO_UNICODE``, which, when set, disables Unicode
-output regardless of locale settings. ``GHC_NO_UNICODE`` can be set to anything
-+(event an empty string) to trigger this behaviour.
+GHC can also be configured using various environment variables.
+
+.. envvar:: GHC_NO_UNICODE
+
+ When non-empty, disables Unicode diagnostics output will be disabled of locale settings.
+
+.. envvar:: GHC_CHARENC
+
+ When set to ``UTF-8`` the compiler will always print UTF-8-encoded output, regardless
+ the current locale.