mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
PosixHostLocales takes an injectable environment reader and returns the locales in order of preference: LC_ALL, then LC_MESSAGES, then LANG, the first one that is set and not empty, as the C library chooses the locale of the messages category. When that locale is a real one (not C, POSIX or unset) the entries of LANGUAGE, the GNU preference list, come before it, as gettext ignores LANGUAGE under the C locale.