#!/bin/sh

euc_java_setup()
{
sh ./bin/java_setup.euc
}

shj_java_setup()
{
sh ./bin/java_setup.sj
}

std_java_setup()
{
sh ./bin/java_setup.std
}


# First work out what LC_MESSAGES is current.
curlng=`locale | fgrep LC_MESSAGES | tr '=' ' ' | awk '{print $2}' | tr '\"' '\0'`

# FORCE LC_CTYPE to agree with LC_MESSAGES. 
# Unreadable system messages can occur without this.
LC_CTYPE=$LC_MESSAGES
export LC_CTYPE

#
# Based on this, either run the Japanese EUC, the Shiftjis or English
# java_setup script.
#
if [ "$curlng" = "ja" ]
then
euc_java_setup
else
if [ "$curlng" = "ja_JP.PCK" ]
then
shj_java_setup
else
std_java_setup
fi
fi


