From bc1f768f7fa171ff58ecd840f61741a55304ea66 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 18 Feb 2009 17:28:00 -0500 Subject: [PATCH] autoselect available locales --- .profile.d/locale.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.profile.d/locale.sh b/.profile.d/locale.sh index 6536b5a..c9bbd4c 100644 --- a/.profile.d/locale.sh +++ b/.profile.d/locale.sh @@ -1,5 +1,9 @@ case ${TERM} in Eterm) LANG="en_US";; - *) LANG="en_US.UTF8";; + *) + for LANG in en_US.UTF8 en_US.UTF-8 "" ; do + locale | grep -q "^LC.*${LANG}" && break + done + ;; esac export LANG -- 2.39.5