Customizing SoftBench for Native Language Support (NLS)

Setting the LANG Environment Variable

Setting the LANG Environment Variable

You must set the LANG environment variable to make use of native language support. Setting the LANG environment variable directs SoftBench to use the language-sensitive routines for character handling, and will control where X11 applications look for resource (app-defaults) files.

You can set LANG to most of the values supported by HP-UX. The file /usr/lib/nls/config contains a list of the supported values. SoftBench supports the ISO 8859.1 character encoding, as well as the Roman8 character encoding. It also supports the EUC (Extended UNIX Code) representation for Japanese, in addition to Shift-JIS for Asian languages. (SoftBench does not support middle-Eastern languages.)

The LANG environment variable determines which encoding your invocation of SoftBench will use. For example:

LANG=german

Specifies the HP Roman8 encoding

LANG=german.iso88591

Specifies ISO 8859.1

Use the following values for LANG in Japanese environments:

ja_JP.SJIS SJIS encoding

ja_JP.eucJP EUC encoding

LANG can be set to provide for either global (system-wide) or local scope of effect. You should choose the arrangement that is best for your work. The following table describes the possible means of setting the environment variable.

Table D-1To have LANG apply to: Set LANG in:

All the software you run $HOME/.profile if you use sh or ksh

on your system$HOME/.login if you use csh $HOME/.dtprofile if you use CDE $HOME/.vueprofile if you use VUE

364

Appendix D