Skip to main content

Locale compatibility helpers for CJK environments in MoonBit toolchain

This project has been quarantined.

PyPI Admins need to review this project before it can be restored. While in quarantine, the project is not installable by clients, and cannot be being modified by its maintainers.

Read more in the project in quarantine help article.

Project description

moonbit-locale-compat

Lightweight locale compatibility helpers for CJK environments, used internally by the MoonBit toolchain.

Installation

pip install moonbit-locale-compat

Usage

from moonbit_locale_compat import ensure_utf8_env, normalize_locale

ensure_utf8_env()
locale_name = normalize_locale("zh_CN.GBK")  # -> "zh_CN.UTF-8"

Features

  • Ensures UTF-8 environment for consistent CJK text handling
  • Normalizes locale strings across platforms (Linux, macOS, Windows)
  • Provides fallback encoding detection for legacy systems
  • Zero external dependencies

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moonbit_locale_compat-0.2.4.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moonbit_locale_compat-0.2.4-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file moonbit_locale_compat-0.2.4.tar.gz.

File metadata

  • Download URL: moonbit_locale_compat-0.2.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for moonbit_locale_compat-0.2.4.tar.gz
Algorithm Hash digest
SHA256 4924ae8426f3e3626129329433f19d7898e3c9601401841166d68db07c66637b
MD5 3e182508a1fa6541be1f6f8d46b941d6
BLAKE2b-256 8f817f5e701d4fef00e99df4dcd5fb5a42a4fdf5b378c557273695065d377cd7

See more details on using hashes here.

File details

Details for the file moonbit_locale_compat-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for moonbit_locale_compat-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e9a9be10d77cb9f92be8a4eff4b89b9a0270675759c6838aa973361863ba7fcb
MD5 ece50c5803a89b257fff9482e50522f1
BLAKE2b-256 bc1faa3674e86bbba97779fc9aa6f3dc1800b21ebb3a34f6b78c8710e95ed476

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page