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.


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.


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