coreutils
coreutils copied to clipboard
Locale lookup doesn't seem to be working with full region code
Description
Locale lookup appears to be too strict, it doesn't accept just hu.ftl, it needs the hyphen also (hu-HU.ftl). Uutils should just fall back to hu.ftl
Steps to reproduce
git clone https://github.com/uutils/coreutils-l10nsudo cp uu/users/locales/hu.ftl /usr/share/locales/users/hu.ftlLANG=hu_HU.UTF-8 uu-users --help(not localized)sudo cp uu/users/locales/hu.ftl /usr/share/locales/users/hu-HU.ftlLANG=hu_HU.UTF-8 uu-users --help(localized)
Locale output:
LC_CTYPE="hu_HU.UTF-8"
LC_NUMERIC="hu_HU.UTF-8"
LC_TIME="hu_HU.UTF-8"
LC_COLLATE="hu_HU.UTF-8"
LC_MONETARY="hu_HU.UTF-8"
LC_MESSAGES="hu_HU.UTF-8"
LC_PAPER="hu_HU.UTF-8"
LC_NAME="hu_HU.UTF-8"
LC_ADDRESS="hu_HU.UTF-8"
LC_TELEPHONE="hu_HU.UTF-8"
LC_MEASUREMENT="hu_HU.UTF-8"
LC_IDENTIFICATION="hu_HU.UTF-8"
LC_ALL=
I think this is what packager or make should care about instead of embedding logic to binariy.