Implementation Note:
{AI05-0233-1}
Some environments define both a system locale and
the locale of the current user. For such environments, the active locale
is that of current user if any; otherwise (as in a partition running
on a server without a user), the system locale should be used.

Discussion: Some
common language codes are: "eng" – English; "fra"
– French; "deu" – German; "zho" –
Chinese. These are the same codes as used by POSIX systems. We considered
including constants for the most common languages, but that was rejected
as the likely source of continual arguments about the constant names
and which languages are important enough to include.

Discussion: Some
common country codes are: "CA" – Canada; "FR"
– France; "DE" – Germany; "IT" –
Italy; "ES" – Spain; "GB" – United Kingdom;
"US" – United States. These are the same codes as used
by POSIX systems. We didn't include any country constants for the same
reasons that we didn't include any language constants.

{AI05-0127-2}
{AI05-0248-1}
Function Language returns the code of the language
associated with the active locale. If the Language_Code associated with
the active locale cannot be determined from the environment, then Language
returns Language_Unknown.

{AI05-0127-2}
{AI05-0248-1}
Function Country returns the code of the country
associated with the active locale. If the Country_Code associated with
the active locale cannot be determined from the environment, then Country
returns Country_Unknown.