aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/setlocale.3
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2002-10-09 09:19:28 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2002-10-09 09:19:28 +0000
commitf4da1a754daf3d4c20b8747729c0685cd2488bd6 (patch)
treee00be7aa17b3302ae9bae53d68968425f800ee09 /lib/libc/locale/setlocale.3
parent16c1138c89ef7a738037fb976dd6b54797e5f88f (diff)
downloadsrc-f4da1a754daf3d4c20b8747729c0685cd2488bd6.tar.gz
src-f4da1a754daf3d4c20b8747729c0685cd2488bd6.zip
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
Notes
Notes: svn path=/head/; revision=104711
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 a1bb367bd7b1..75808672a823 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