16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix F. Localization<br />

Internationalization enables you to work in a cultural context that is comfortable for<br />

you through locales, character sets, and a number of special environment variables.<br />

The process of adapting an internationalized application or program, particular to a<br />

language or cultural milieu, is termed localization.<br />

A locale is the subset of your environment that deals with language and cultural<br />

conventions. It is made up of a number of categories, each of which is associated<br />

with an environment variable and controls a specific aspect of the environment. The<br />

following list shows the categories and their spheres of influence:<br />

LC_COLLATE<br />

Collating (sorting) order.<br />

LC_CTYPE<br />

Character classification and case conversion.<br />

LC_MESSAGES<br />

Formats of informative and diagnostic messages and interactive responses.<br />

LC_MONETARY<br />

Monetary formatting.<br />

LC_NUMERIC<br />

Numeric, nonmonetary formatting.<br />

LC_TIME<br />

Date and time formats.<br />

LC_SYNTAX<br />

EBCDIC-variant character encodings used by some C functions and<br />

utilities.<br />

To give a locale control over a category, set the corresponding variable to the name<br />

of the locale. In addition to the environment variables associated with the<br />

categories, there are two other variables which are used in conjunction with<br />

localization, LANG and LC_ALL. All of these variables affect the performance of<br />

the shell commands. The general effects apply to most commands, but certain<br />

commands such as sort, with its dependence on LC_COLLATE, require special<br />

attention to be paid to one or more of the variables; this discusses such cases in<br />

the Localization topic of the command. The effects of each environment variable is<br />

as follows:<br />

LANG Determines the international language value. Utilities and applications can<br />

use the information from the given locale to provide error messages and<br />

instructions in that locale’s language. If LC_ALL variable is not defined, any<br />

undefined variable is treated as though it contained the value of LANG.<br />

LC_ALL<br />

Overrides the value of LANG and the values of any of the other variables<br />

starting with LC_.<br />

LC_COLLATE<br />

Identifies the locale that controls the collating (sorting) order of characters<br />

and determines the behavior of ranges, equivalence classes, and<br />

multicharacter collating elements.<br />

LC_CTYPE<br />

Identifies the locale that defines character classes (for example, alpha, digit,<br />

© Copyright IBM Corp. 1996, 2007 907

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!