24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

The new locales must be able to effectively support the dual currency situation<br />

that will exist between the years 1999 - 2002. During this time period, the locale<br />

definition will still use the country’s national currency definition as the default, but<br />

a mechanism is provided to switch the LC_MONETARY definition so that the Euro<br />

currency formatting is used instead of the country’s national currency formatting<br />

rules.<br />

For those customers that have applications that will not support multi-byte<br />

encodings such as UTF-8, a Euro single-byte migration option is provided as well.<br />

This option is based on the Windows 1252 placement of the Euro at 0x80 to<br />

provide the best compatibility with Windows 98/NT clients.<br />

10.5.2 Local Definitions for the UTF-8 Code Set<br />

A locale is made up of the language, territory, and code set combination used to<br />

identify a set of language conventions. The language specific information is<br />

accessed through the locale database that is compiled by the localedef<br />

command. The localedef command takes three different files as input:<br />

• One file describes the local methods to be overridden in respect to the<br />

defaults when constructing a locale.<br />

• The second file contains a mapping from the character symbols and collating<br />

element symbols to actual character encodings.<br />

• Finally, the language conventions are grouped in six categories to include<br />

information about collation, case conversion, and character classification, the<br />

language of message catalogs, date-and-time representation, the monetary<br />

symbol, and numeric representation.<br />

The local category source definitions are given in the third input file, the local<br />

definition source file.<br />

The following categories can be defined for a given local:<br />

LC_COLLATE Determines character-collation or string-collation information.<br />

LC_CTYPE Determines character classification, case conversion, and<br />

other character attributes.<br />

LC_MESSAGES Determines the format for affirmative and negative<br />

responses.<br />

LC_MONETARY Determines rules and symbols for formatting monetary<br />

numeric information.<br />

LC_NUMERIC Determines rules and symbols for formatting and<br />

non-monetary numeric information.<br />

LC_TIME Determines a list of rules and symbols for formatting time and<br />

date information.<br />

NLS uses the environment variables LC_COLLATE, LC_CTYPE,<br />

LC_MESSAGES, LC_MONETARY, LC_NUMERIC and LC_TIME to define the<br />

current values for their respective categories and to influence the selection of<br />

locales. In addition to the previously mentioned medium priority class<br />

environment variables, the LANG low priority class environment variable<br />

specifies the installation default locale. You can change the LANG variable at any<br />

time. Furthermore, the high priority class variable LC_ALL is provided that takes<br />

precedence above all the other NLS environment variables mentioned before.<br />

National Language Support 253

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

Saved successfully!

Ooh no, something went wrong!