File: lib.rs

package info (click to toggle)
utf8-locale 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: python: 847; ansic: 486; sh: 121; makefile: 21
file content (21 lines) | stat: -rw-r--r-- 820 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#![deny(missing_docs)]
/*
 * SPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net>
 * SPDX-License-Identifier: BSD-2-Clause
 */
//! utf8-locale: 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.
#![doc(html_root_url = "https://docs.rs/utf8-locale/1.0.3")]
#![allow(clippy::pub_use)]

pub mod detect;

pub use detect::{LanguagesDetect, UErr as Error, Utf8Detect, Utf8Environment};

#[cfg(test)]
pub mod tests;