* 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.
This commit is contained in:
parent
4844eaa5f8
commit
999820f6ab
@ -1,3 +1,10 @@
|
|||||||
|
2009-06-16 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2009-06-16 Corinna Vinschen <corinna@vinschen.de>
|
2009-06-16 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
|
* libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length of
|
||||||
|
@ -43,6 +43,12 @@ struct lconv
|
|||||||
char n_sep_by_space;
|
char n_sep_by_space;
|
||||||
char p_sign_posn;
|
char p_sign_posn;
|
||||||
char n_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
|
#ifndef _REENT_ONLY
|
||||||
|
@ -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, CHAR_MAX, CHAR_MAX,
|
||||||
|
CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX,
|
||||||
|
CHAR_MAX, CHAR_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef _MB_CAPABLE
|
#ifdef _MB_CAPABLE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user