Traditional Chinese Solaris Release Overview

Chapter 2 System Environment

The Solaris 8 operating environment builds inherent internationalization features into every localized product. Sun's system localization for the Traditional Chinese Solaris 8 operating environment incorporates two essential environmental elements on top of internationalization: locales and categories.

The Traditional Chinese Solaris operating environment localization facilities support the ANSI C recommendations for internationalization and localization. The ANSI C recommendations define a user's locale and the categories within each locale.

Setting the Locale

Three components make up the Traditional Chinese Solaris localization facility:

The Traditional Chinese Solaris 8 operating environment defines six categories to describe the local environment. These categories allow the localization of character typing and conversion functions, date and time, numeric representation, monetary format, collation order, and program messages. Each category can have multiple localizations. For example, time and date can be displayed in C locale format or Traditional Chinese. Applications can switch between locale settings by using the setlocale() function.

Users can change their locale settings with shell environment variables. Each category names an existing locale. The setlocale() function directly sets or queries the setting of these categories. Internationalized functions use these settings to access the appropriate tables for the desired locale.

Environment variables can be used to set the categories indirectly: when setlocale() sets the categories to the default setting for that application, it uses the setting of each environment variable to set the associated categories. The setlocale() function used in this way does not change the settings of environment variables, it only reads their settings.

Locale Categories

The Traditional Chinese Solaris 8 operating environment allows you to set the Chinese environment or use the English environment. You can specify the following:

The general locale settings are LANG and LC_ALL. The specific locale category settings are listed below. In this book, the designation LC_XXX refers to any one of the locale category settings.

The specific locale category settings are:

The LC_ALL identifier invokes all six categories.

TTY Environment

The Traditional Chinese Solaris 8 operating environment supports terminals using Big5 code. The terminals must have a method to input Traditional Chinese characters, that is, run their own Traditional Chinese input conversion.

For information on using different types of terminals, refer to Traditional Chinese Solaris System Administrator's Guide and International Language Environments Guide.