summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/setlocale.3
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-10-09 09:19:28 +0000
committertjr <tjr@FreeBSD.org>2002-10-09 09:19:28 +0000
commitc112e4d2cb3cd80c3f7cc0e6eb463cc71b2cf24f (patch)
treee00be7aa17b3302ae9bae53d68968425f800ee09 /lib/libc/locale/setlocale.3
parent9a5a0eace469d8dfc930727142fecf4d13009558 (diff)
downloadFreeBSD-src-c112e4d2cb3cd80c3f7cc0e6eb463cc71b2cf24f.zip
FreeBSD-src-c112e4d2cb3cd80c3f7cc0e6eb463cc71b2cf24f.tar.gz
Add support for the 6 new C99 struct lconv members dealing with formatting
international monetary values: int_p_cs_precedes, int_n_cs_precedes, int_p_sep_by_space, int_n_sep_by_space, int_p_sign_posn, int_n_sign_posn. This should not break existing binaries or LC_MONETARY data files. Reviewed by: ache MFC after: 1 month
Diffstat (limited to 'lib/libc/locale/setlocale.3')
-rw-r--r--lib/libc/locale/setlocale.334
1 files changed, 32 insertions, 2 deletions
diff --git a/lib/libc/locale/setlocale.3 b/lib/libc/locale/setlocale.3
index a1bb367b..7580867 100644
--- a/lib/libc/locale/setlocale.3
+++ b/lib/libc/locale/setlocale.3
@@ -35,7 +35,7 @@
.\" @(#)setlocale.3 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$
.\"
-.Dd June 9, 1993
+.Dd October 5, 2002
.Dt SETLOCALE 3
.Os
.Sh NAME
@@ -163,6 +163,12 @@ struct lconv {
char n_sep_by_space;
char p_sign_posn;
char n_sign_posn;
+ char int_p_cs_precedes;
+ char int_n_cs_precedes;
+ char int_p_sep_by_space;
+ char int_n_sep_by_space;
+ char int_p_sign_posn;
+ char int_n_sign_posn;
};
.Ed
.Pp
@@ -249,6 +255,30 @@ Just after
Like
.Fa p_sign_posn
but for negative currency values.
+.It Fa int_p_cs_precedes
+Same as
+.Fa p_cs_precedes ,
+but for internationally formatted monetary quantities.
+.It Fa int_n_cs_precedes
+Same as
+.Fa n_cs_precedes ,
+but for internationally formatted monetary quantities.
+.It Fa int_p_sep_by_space
+Same as
+.Fa p_sep_by_space ,
+but for internationally formatted monetary quantities.
+.It Fa int_n_sep_by_space
+Same as
+.Fa n_sep_by_space ,
+but for internationally formatted monetary quantities.
+.It Fa int_p_sign_posn
+Same as
+.Fa p_sign_posn ,
+but for internationally formatted monetary quantities.
+.It Fa int_n_sign_posn
+Same as
+.Fa n_sign_posn ,
+but for internationally formatted monetary quantities.
.El
.Pp
Unless mentioned above,
@@ -311,7 +341,7 @@ The
and
.Fn localeconv
functions conform to
-.St -isoC .
+.St -isoC-99 .
.Sh HISTORY
The
.Fn setlocale
OpenPOWER on IntegriCloud