[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

National Language Support Guide and Reference

Euro Currency Support

The strfmon subroutine uses the information from the locale's LC_MONETARY category to determine the correct monetary format for the given language/territory. Locales can handle both the traditional national currencies by using the @preeuro modifier, as well as the common European currency (euro). Each European country that uses the euro will have an additional LC_MONETARY definition with the @preeuro modifier appended. This alternate format is invoked when specified through the locale environment variables, or with the setlocale subroutine.

To use the French locale, UTF-8 codeset environment, and euro as the monetary unit, set:

 LANG=FR_FR

To use the French locale, UTF-8 codeset environment, and French francs as the monetary unit, set:

LANG=FR_FR
LC_MONETARY=FR_FR@preeuro

Users should not attempt to set LANG=FR_FR@preeuro, because the @preeuro variant for locale categories other than LC_MONETARY is undefined.

Examples

Multibyte and Wide Character Subroutines

The external representation of data is referred to as the file code representation of a character. When file code data is created in files or transferred between a computer and its I/O devices, a single character may be represented by one or several bytes. For processing strings of such characters, it is more efficient to convert these codes into a uniform-length representation. This converted form is intended for internal processing of characters. The internal representation of data is referred to as the process code or wide character code representation of the character.

NLS internationalization of programs is a blend of multibyte and wide character subroutines. A multibyte subroutine uses multibyte character sets. A wide character subroutine uses wide character sets. Multibyte subroutines have an mb prefix. Wide character subroutines have a wc prefix. The corresponding string-handling subroutines are indicated by the mbs and wcs prefixes, respectively. Deciding when to use multibyte or wide character subroutines can be made only after careful analysis.

This section contains the following major subsections that discuss multibyte and wide character code subroutines:

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]