#!/bin/bash
#  $HeadURL: http://dione.no-ip.org/svn/ade/tags/1.7.6/lib/tests/bin/ADESTDTEST003_check_host_locale_ok.sh $ $LastChangedRevision: 3171 $
set -e
PROGNAME=`basename $0`
SANDPIT=`pwd`
. $(ade-config ade_include_prefix)/adetestsupport.sh

#  Nice way to check if locale is ok; perl complains loudly
OUTPUT=$(perl -e '' 2>&1)

#  For the test reference
echo "$OUTPUT"

#  To alert the user, to save them digging in sandpits.
[ "X$OUTPUT" = X ] || {
    echo "Your locale is broken! Please fix it! The following"
    echo "command will produce no output when it is fixed:"
    echo
    echo "perl -e ''"
} >/dev/tty
