Commit 673d3b61 authored by Claes Sjofors's avatar Claes Sjofors

wb start, locale fix

parent 10a646f7
......@@ -33,9 +33,9 @@ if [ -z $database ]; then
return
fi
if [ "`eval grep Ubuntu /etc/*-release 2>/dev/null`" != "" ]; then
if [ "`eval locale -a | grep -i "^en_US.UTF-8$"`" != "" ]; then
export LC_TIME="en_US.UTF-8"
elif [ -e /etc/debian_version ]; then
elif [ "`eval locale -a | grep -i "^en_US$"`" != "" ]; then
export LC_TIME="en_US"
fi
export LC_NUMERIC="POSIX"
......
......@@ -25,12 +25,11 @@ username=$1
password=$2
volume=$3
if [ "`eval grep Ubuntu /etc/*-release 2>/dev/null`" != "" ]; then
if [ "`eval locale -a | grep -i "^en_US.UTF-8$"`" != "" ]; then
export LC_TIME="en_US.UTF-8"
elif [ -e /etc/debian_version ]; then
elif [ "`eval locale -a | grep -i "^en_US$"`" != "" ]; then
export LC_TIME="en_US"
fi
export LC_NUMERIC="POSIX"
wb $username $password $volume $4 $5 $6 $7
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment