HP-UX Reference (11i v2 03/08) - 3 Library Functions A-M (vol 6)
l
localeconv(3C) localeconv(3C)
RETURN VALUE
localeconv() returns a pointer to the filled-in
struct lconv.
EXAMPLES
The following table illustrates the formatting used in five languages for monetary quantities.
Country Positive format Negative format International format
en_US.iso88591 $1,234.56 -$1,234.56 USD 1,234.56
it_IT.iso88591 L.1.234 -L.1.234 ITL.1.234
nl_NL.iso88591 F 1.234,56 F -1.234,56 NLG 1.234,56
no_NO.iso88591 kr1.234,56 kr1.234,56- NOK 1.234,56
pt_PT.iso88591 1,234$56 -1,234$56 PTE 1,234$56
For these five languages, the respective values for the monetary members of the structure returned by
localeconv() are:
en_US. it_IT. nl_NL. no_NO. pt_PT.
iso88591 iso88591 .iso88591 iso88591 iso88591
int_curr_symbol USD ITL. NLG NOK PTE
currency_symbol $ L. F kr $
mon_decimal_point . "" , , $
mon_thousands_sep , . . . ,
mon_grouping \3 \3 \3 \3 \3
positive_sign "" "" "" "" ""
negative_sign - - - - -
int_frac_digits 2 0 2 2 2
frac_digits 2 0 2 2 2
p_cs_precedes 1 1 1 1 0
p_sep_by_space 0 0 1 0 0
n_cs_precedes 1 1 1 1 0
n_sep_by_space 0 0 1 0 0
p_sign_posn 1 1 1 1 1
n_sign_posn 4 1 4 2 1
WARNINGS
The structure returned by localeconv() should not be modified by the calling program. Calls to
set-
locale()
with categories LC_ALL, LC_MONETARY,orLC_NUMERIC can overwrite the contents of the
structure that localeconv() points to when it returns (see setlocale (3C)).
AUTHOR
localeconv() was developed by OSF and HP.
SEE ALSO
nl_langinfo(3C), setlocale(3C), localedef(4), langinfo(5), thread_safety(5).
STANDARDS CONFORMANCE
localeconv(): AES, SVID3, XPG4, ANSI C
Section 3−−580 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: August 2003