Managing User Accounts and User Environments in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Locale Variables

The LANG and LC environment variables specify the locale-specific conversions and conventions for the shell. These conversions and conventions include time zones, collation orders, and formats of dates, time, currency, and numbers. In addition, you can use the stty command in a user initialization file to indicate whether the terminal session will support multibyte characters.

The LANG variable sets all possible conversions and conventions for the given locale. You can set various aspects of localization separately through the LC variables LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_NUMERIC, LC_MONETARY, and LC_TIME.


Note -  By default, Oracle Solaris 11 installs UTF-8 based locales only.

The following table describes the environment variable values for the core Oracle Solaris 11 locales.

Table 1-11  Values for Locale Variables
Value
Locale
en_US.UTF-8
English, United States (UTF-8)
fr_FR.UTF-8
French, France (UTF-8)
de_DE.UTF-8
German, Germany (UTF-8)
it_IT.UTF-8
Italian, Italy (UTF-8)
ja_JP.UTF-8
Japanese, Japan (UTF-8)
ko_KR.UTF-8
Korean, Korea (UTF-8)
pt_BT.UTF-8
Portuguese, Brazil (UTF-8)
zh_CN.UTF-8
Simplified Chinese, China (UTF–8)
es_ES.UTF-8
Spanish, Spain (UTF-8)
zh_TW.UTF-8
Traditional Chinese, Taiwan (UTF-8)
Example 1-1  Setting the Locale

In a Bourne or Korn shell user initialization file, you would add the following:

LANG=de_DE.ISO8859-1; export LANG