diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-02-10 00:43:32 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-02-10 00:43:32 +0000 |
| commit | 051f867fe1b1a63dd287a43b532c791d38238f6a (patch) | |
| tree | ceb6c9b3d3cf933f168c55fb00a5fec09c077793 /lib/libc | |
| parent | 7e1cd0d23d0331e11650f89caadd8d1815aa53b2 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/locale/lmonetary.c | 3 | ||||
| -rw-r--r-- | lib/libc/locale/lnumeric.c | 9 |
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; |
