1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
# SPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net>
# SPDX-License-Identifier: BSD-2-Clause
"""Detect a UTF-8-capable locale for running child processes in.
Sometimes it is useful for a program to be able to run a child process and
more or less depend on its output being valid UTF-8. This can usually be
accomplished by setting one or more environment variables, but there is
the question of what to set them to - what UTF-8-capable locale is present
on this particular system? This is where the `utf8_locale` module comes in.
"""
from .detect import ( # isort: skip
VERSION,
UTF8_LANGUAGES,
UTF8_ENCODINGS,
LOCALE_VARIABLES,
LanguagesDetect,
NoLanguagesError,
UTF8Detect,
UTF8Environment,
detect_utf8_locale,
get_preferred_languages,
get_utf8_env,
get_utf8_vars,
)
__all__ = [
"LOCALE_VARIABLES",
"UTF8_ENCODINGS",
"UTF8_LANGUAGES",
"VERSION",
"LanguagesDetect",
"NoLanguagesError",
"UTF8Detect",
"UTF8Environment",
"detect_utf8_locale",
"get_preferred_languages",
"get_utf8_env",
"get_utf8_vars",
]
|