2.4.2 Environment variable settings (UNIX only)
UNIX users must set the language code used by JP1/IM - EG for NNMi. Configure the language code setting for both the environment variables file and common definitions.
Note the following points about the environment variables settings.
-
When LC_ALL is not specified, the settings of LC_MESSAGES, LANG, and LC_CTYPE# must be the same.
-
When LC_ALL and LC_MESSAGES are not specified, the settings of LANG and LC_CTYPE# must be the same.
- #
-
The settings of LC_CTYPE are optional.
Each setting must maintain uniformity within the local host. For details about the procedure to use to configure settings, see below.
- Organization of this subsection
(1) Setting the language encoding in the environment variable file
Using a text editor such as vi, open the /etc/opt/jp1eg4nnmi/conf/jegn_env.conf file and, following LANG= on the first line, set the appropriate value for the LANG environment variable based on the following table.
OS |
Language type in use |
Value of LANG environment variable |
||
---|---|---|---|---|
Type |
Language type |
Encoding |
||
Linux |
Japanese |
UTF-8#1 |
Japanese |
ja_JP.UTF-8 or ja_JP.utf8 |
SJIS#2 |
ja_JP.SJIS or ja_JP.sjis |
|||
English |
UTF-8#1 |
English |
en_US.UTF-8 or en_US.utf8 |
|
C |
C |
Environment variables file settings will be applied the next time you start up JP1/IM - EG for NNMi.
(2) Setting the language encoding in the common definitions
-
Edit the jp1bs_param.conf file of JP1/Base.
Use a text editor to open the /etc/opt/jp1base/conf/jp1bs_param.conf file. After LANG=, set a value for the LANG environment variable based on the table below.
Table 2‒6: Values that can be specified for LANG in the jp1bs_param.conf file OS
Language type in use
Value of LANG
Type
Language
Encoding
Linux
Japanese
UTF-8
Japanese
UTF-8
SJIS#
SJIS
English
UTF-8
English
UTF-8
C
C
-
Stop JP1/IM - EG for NNMi.
-
Stop JP1/Base.
-
Execute the following command:
/opt/jp1base/bin/jbssetcnf /etc/opt/jp1base/conf/jp1bs_param.conf
-
Start JP1/Base.
-
Start JP1/IM - EG for NNMi.