HP-UX 11i June 2004 Release Notes
Internationalization
Euro - ISO 10646/Unicode Support
Chapter 16
335
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 @euro modifier to use/access euro
monetary formatting rules.
For example, to specify the Euro as the currency for French, the following should be set:
LANG =3D fr_FR.utf8
LC_MONETARY =3D fr_FR.utf8@euro
Similarly, to specify French francs the following should be set:
LANG=3Dfr_FR.utf8
To access the monetary unit and the related monetary formatting rules
programmatically, the programmer needs to 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 monetary
category will use euro standard formatting rules whereas other categories will still use
local conventions in formatting. As a result, users may encounter a change to the
decimal and thousandths separators for the currency, whereas decimal and thousandths
separators outside the monetary area, like in numeric numbers, remain as per local
conventions.
For example, in the French locale the thousandths separator is a space and the decimal
point is a comma. However, the international standard for the thousandths separator for
the euro currency is a period. So, a user that has the LC_MONETARY locale category set to
“fr_FR.utf8@euro” will see the following behavior:
en_GB.utf8 English (Great Britain)
es_ES.utf8 Spanish (Spain)
i_FI.utf8 Finnish (Finland)
fr_FR.utf8 French (France)
is_IS.utf8 Icelandic (Iceland)
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 16-11 Locales with Dual Currency (Continued)
Locale Language/Country