utf8_locale/lib.rs
1#![deny(missing_docs)]
2// SPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net>
3// SPDX-License-Identifier: BSD-2-Clause
4//! utf8-locale: detect a UTF-8-capable locale for running child processes in.
5//!
6//! Sometimes it is useful for a program to be able to run a child process and
7//! more or less depend on its output being valid UTF-8. This can usually be
8//! accomplished by setting one or more environment variables, but there is
9//! the question of what to set them to - what UTF-8-capable locale is present
10//! on this particular system? This is where the `utf8_locale` module comes in.
11#![doc(html_root_url = "https://docs.rs/utf8-locale/1.0.4")]
12#![allow(clippy::pub_use)]
13
14pub mod detect;
15
16pub use detect::{LanguagesDetect, UErr as Error, Utf8Detect, Utf8Environment};
17
18#[cfg(test)]
19pub mod tests;