summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-02-10 00:43:32 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-02-10 00:43:32 +0000
commit051f867fe1b1a63dd287a43b532c791d38238f6a (patch)
treeceb6c9b3d3cf933f168c55fb00a5fec09c077793 /lib/libc
parent7e1cd0d23d0331e11650f89caadd8d1815aa53b2 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/lmonetary.c3
-rw-r--r--lib/libc/locale/lnumeric.c9
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/locale/lmonetary.c b/lib/libc/locale/lmonetary.c
index 0b8581a929fb..22c157fe871f 100644
--- a/lib/libc/locale/lmonetary.c
+++ b/lib/libc/locale/lmonetary.c
@@ -26,6 +26,7 @@
* $FreeBSD$
*/
+#include <limits.h>
#include "lmonetary.h"
#include "ldpart.h"
@@ -34,7 +35,7 @@ extern int __mlocale_changed;
#define LCMONETARY_SIZE (sizeof(struct lc_monetary_T) / sizeof(char *))
static char empty[] = "";
-static char numempty[] = "-1";
+static char numempty[] = { CHAR_MAX, '\0' };
static const struct lc_monetary_T _C_monetary_locale = {
empty , /* int_curr_symbol */
diff --git a/lib/libc/locale/lnumeric.c b/lib/libc/locale/lnumeric.c
index 765d604a7285..bbf118c9add5 100644
--- a/lib/libc/locale/lnumeric.c
+++ b/lib/libc/locale/lnumeric.c
@@ -26,6 +26,7 @@
* $FreeBSD$
*/
+#include <limits.h>
#include "lnumeric.h"
#include "ldpart.h"
@@ -33,10 +34,12 @@ extern int __nlocale_changed;
#define LCNUMERIC_SIZE (sizeof(struct lc_numeric_T) / sizeof(char *))
+static char numempty[] = { CHAR_MAX, '\0' };
+
static const struct lc_numeric_T _C_numeric_locale = {
- ".", /* decimal_point */
- "", /* thousands_sep */
- "-1" /* grouping */
+ ".", /* decimal_point */
+ "", /* thousands_sep */
+ numempty /* grouping */
};
static struct lc_numeric_T _numeric_locale;