diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-06-16 19:45:17 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-06-16 19:45:17 +0000 |
commit | 999820f6ab8aaf6a281dbb919341fcf2a2f3d119 (patch) | |
tree | fc0402507b25fef6a5b6960efa9431a4511749dc /newlib/libc | |
parent | 4844eaa5f8be7786ade8f681bf376e8a21dd735b (diff) | |
download | newlib-999820f6ab8aaf6a281dbb919341fcf2a2f3d119.zip newlib-999820f6ab8aaf6a281dbb919341fcf2a2f3d119.tar.gz newlib-999820f6ab8aaf6a281dbb919341fcf2a2f3d119.tar.bz2 |
* libc/include/locale.h (struct lconv): Add missing members required
by POSIX.1-2008.
* libc/locale/locale.c (lconv): Initialize new members to default
values in "C" locale.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/locale.h | 6 | ||||
-rw-r--r-- | newlib/libc/locale/locale.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/newlib/libc/include/locale.h b/newlib/libc/include/locale.h index ebe1422..fa5c270 100644 --- a/newlib/libc/include/locale.h +++ b/newlib/libc/include/locale.h @@ -43,6 +43,12 @@ struct lconv char n_sep_by_space; char p_sign_posn; char n_sign_posn; + char int_n_cs_precedes; + char int_n_sep_by_space; + char int_n_sign_posn; + char int_p_cs_precedes; + char int_p_sep_by_space; + char int_p_sign_posn; }; #ifndef _REENT_ONLY diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c index 6349bd9..3b2ffb9 100644 --- a/newlib/libc/locale/locale.c +++ b/newlib/libc/locale/locale.c @@ -160,6 +160,8 @@ static _CONST struct lconv lconv = ".", "", "", "", "", "", "", "", "", "", CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, + CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, + CHAR_MAX, CHAR_MAX }; #ifdef _MB_CAPABLE |