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.3.tar.gz (6.2 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.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moonbit_locale_compat-0.2.3.tar.gz
  • Upload date:
  • Size: 6.2 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.3.tar.gz
Algorithm Hash digest
SHA256 f4665ca39d61f2ee7671d65c2cda87e92c7b749d7306062b4e327e1a7896a159
MD5 dcb4a86687d2d867de2a9362d78e42d9
BLAKE2b-256 7acacf7653de6c4da11dfc1b7f42f89ecfcd16210c51232581e27feb9a7faf53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moonbit_locale_compat-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 51b5ad6bf55f66e5ab594c6f7a1537537f67d20747f2e6d1a600d0b6d0d927f7
MD5 d98d60621da2b957aef28766aeb91ebf
BLAKE2b-256 45eb00e99c7ca7db5e56de8e0c68c02fe25c0eca03d4609e8535aae10dae17b8

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