portage.util.locale module

Function to check whether the current used LC_CTYPE handles case transformations of ASCII characters in a way compatible with the POSIX locale.

portage.util.locale._check_locale(silent)

The inner locale check function.

portage.util.locale.check_locale(silent=False, env=None)

Check whether the locale is sane. Returns True if it is, prints warning and returns False if it is not. Returns None if the check can not be executed due to platform limitations.

portage.util.locale.split_LC_ALL(env)

Replace LC_ALL with split-up LC_* variables if it is defined. Works on the passed environment (or settings instance).