Changing your locale on UNIX and Linux systems

You can change your system locale on UNIX and Linux systems.

The supplied profile is in the directory sample/profiles and shows how to set the locale environment variables LANG, LC_ALL, and NLSPATH. If you prefer, you can refer to the contents of this file for guidance.

If you use common desktop environment (CDE), use this to set the locale instead of setting LANG and LC_ALL directly. The NLSPATH variable respects either method.

You can use the executable locale to show your current locale. The command locale -a displays all the locales currently installed on the machine.

When you start a broker component, the locale of that component is inherited from the shell in which it is started. The broker component uses the LC_MESSAGES environment variable as the search path in the NLSPATH environment variable (LC_MESSAGES is set when variable LC_ALL is exported).

Messages are sent to the syslog in the code page set by this locale. If you have multiple brokers that write to this syslog, their messages are in the code page of the locale in which they were started, for example:

locale syslog code page ccsid
pt_BR iso8859-1 819
Pt_BR ibm-850 850
PT_BR utf-8 1208

Set the locale of the user ID that runs the syslog daemon to one that is compatible with the locales of all brokers that write to the syslog on that system, for example, utf-8. You can do this by setting the default locale. On Solaris, set the LANG and LC_ALL variables in /etc/default/init. On AIX and Linux, these variables are in /etc/environment. This task is not required on HP-UX.

If you want to add a new locale, refer to the operating system documentation for information on how to complete that task. If you add a new locale after you have installed WebSphere Business Integration Message Broker, you must complete the following instructions to ensure that product message catalogs are available:

Related reference
Supported operating environments
Supported code pages