Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Changing the locale setting in your profile z/OS UNIX System Services User's Guide SA23-2279-00 |
|
To change the locale, you set the value for the LC_ALL variable and export it. This variable overrides any values for locale specified for the LC_ variables such as LC_COLLATE, LC_MESSAGES, and LC_SYNTAX, but it does not override LC_CTYPE. If you change LC_ALL to a new locale, and z/OS UNIX messages are provided in that language, change the LANG variable setting to match the LC_ALL setting. Currently, z/OS UNIX messages are shipped in English, Kanji, and Simplified Chinese. If you do not change LANG, the messages will be in English. If z/OS UNIX messages are not provided in your language, changing LANG by itself will have no effect. However, although messages are not supplied in your language, the z/OS UNIX messages that are displayed in English will use your national language characters and should display correctly on your terminals. When you change the locale, the shell and utilities run in the new locale, but the shell locale category LC_CTYPE stays in the POSIX locale. This can affect parsing and shell expansion, and cause unpredictable behavior. In order to avoid this problem, after you change locale you must overwrite the current shell by issuing the exec sh -L command. The new shell will correctly interpret the proper character set for the new locale. If you place an export LC_ALL=localename statement in your login profile, or if one has been placed in /etc/profile, make sure it is followed with exec sh -L and protect that with tty -s, as shown in Examples: Changing locale. If you don't protect it with the tty -s test, BPXBATCH SH command will not run the command. If you use exec sh -L, there are two situations that you must take into account:
If your /etc/profile has been set up for the proper locale, you only need to change your .profile if you want a different locale than already set up as the default. For more information on setting up locale and messages, see the section on customizing for your national code page in the shell in z/OS UNIX System Services Planning. |
Copyright IBM Corporation 1990, 2014
|