HP-UX 11.0 - 11i Internationalization Features White Paper
Encoding Characters
Euro Support
Chapter 2
23
To build these locales, refer to the localedef (1M) man page.
When the LANG and/or LC_* environment variables are set to a euro supported locale, the national monetary
formatting rules are used. The LC_MONETARY environment variable should be set to the euro-supported locale
name with the @euro modifier to use/access euro monetary formatting rules.
For example, to specify the euro as the currency for French, use the following settings:
LANG=fr_FR.utf8
LC_MONETARY=fr_FR.utf8@euro
Similarly, to specify French francs:
LANG=fr_FR.utf8
To access the monetary unit and the related monetary formatting rules programmatically, toggle between the
alternate monetary units via setlocale(3C) calls:
/* Handle euro in strfmon(), ... */
setlocale(LC_MONETARY, “fr_FR.utf8@euro”);
...
/* Handle French francs in strfmon(), ... */
setlocale(LC_MONETARY, “fr_FR.utf8”);
When the LC_MONETARY environment variable is set to euro, the formatting in the monetary category uses
euro standard formatting rules, whereas other categories use the local convention in formatting. As a result,
users may encounter a change to the decimal and thousands separators for the currency, whereas decimal and
thousands separators outside the monetary area, like in numeric numbers, remain in local convention format.
For example, in the French locale the thousands separator is a space and the decimal point is a comma.
However, the international standard for the thousands separator for the euro currency is a period. So, a user
that has the LC_MONETARY locale category set to fr_FR.utf8@euro sees the following behavior:
• The number “One thousand five hundred and fifty and a half” outside the monetary area displays as
1 550,50.
• The monetary number “One thousand five hundred and fifty euro and 50 cents” displays as EUR 1.550,50
Commands
The localedef(1m) command has been enhanced to handle the @euro modifier in order to build dual
currency locale(s).
The lp(1)model scripts for the dual currency locales have been enhanced to print the euro character.
it_IT.utf8 Italian (Italy)
nl_NL.utf8 Dutch (The Netherlands)
no_NO.utf8 Norwegian (Norway)
pt_PT.utf8 Portuguese (Portugal)
sv_SE.utf8 Swedish (Sweden)
Table 2-3 Supplied utf8 Locale Sources Supporting Dual Currency (Continued)
Locale Language (Region)