1838675 Members
4982 Online
110128 Solutions
New Discussion

Re: MLANG variable

 
Holger Kleber_2
Contributor

MLANG variable

Hello,

i have one problem to set the MLANG variable in my environment.

I execute a script which contains the following rows:


# Set MLANG
if [ -z "$MLANG" ]; then
case $LANG in
sv*)
MLANG=swe;;
*)
MLANG=eng;;
esac
export MLANG
fi


When i execute this spript i got the following error message:
MLANG: Parameter not set.
My environment i think have a problem to set a variable which is currently not set. The error i got with the root account, but not with my normal user account.

So there may be a problem in the root environment. os level is 10.20.

thanks in advance

holger
2 REPLIES 2
T G Manikandan
Honored Contributor

Re: MLANG variable

Just use locale -a to check what character sets are available/installed.

Then you can choose one from there.
Also make sure you are not running it on csh.

revert
Vitek Pepas
Valued Contributor

Re: MLANG variable

Run 'type script_name' while logged in as root to make sure you are executing the right script.
Or run the script with full path.