From: tfheen Date: Tue, 28 Jun 2005 19:22:24 +0000 (+0000) Subject: utf8ize X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47d795f966f29ce622fd17771cee56866b5d7e43;p=dotfiles utf8ize git-svn-id: file:///svn/tfheen/trunk/dotfiles@796 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/environment b/environment index 097659a..1080ca1 100644 --- a/environment +++ b/environment @@ -176,8 +176,10 @@ case `uname -s` in esac if [ -z "$LANG" ] || [ "$LANG" = "C" ]; then - if findcommand locale; then - if locale -a | grep -q '^no_NO$' ; then + if findcommand locale >/dev/null; then + if locale -a | grep -q '^nb_NO.utf8$' ; then + LANG=nb_NO.utf8 + elif locale -a | grep -q '^no_NO$' ; then LANG=no_NO elif locale -a | grep -q '^en_US$'; then LANG=en_US @@ -186,7 +188,7 @@ if [ -z "$LANG" ] || [ "$LANG" = "C" ]; then fi if [ -z "$LANG" ] || [ "$LANG" = "C" ]; then - if findcommand localedef; then + if findcommand localedef >/dev/null; then localedef --list-archive > /dev/null 2>&1 if test "$?" = "0"; then if localedef --list-archive | grep -q '^no_NO$' ; then