[PATCH] Add missing members to struct lconv
Jeff Johnston
jjohnstn@redhat.com
Wed Jun 17 14:36:00 GMT 2009
Please go ahead.
-- Jeff J.
Corinna Vinschen wrote:
> Hi,
>
> as discussed, here's the extension of struct lconv by the missing
> members required by POSIX.1-2008.
>
>
> Corinna
>
>
> * 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.
>
>
> Index: libc/include/locale.h
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/include/locale.h,v
> retrieving revision 1.3
> diff -u -p -r1.3 locale.h
> --- libc/include/locale.h 27 Jun 2002 23:58:38 -0000 1.3
> +++ libc/include/locale.h 16 Jun 2009 18:03:46 -0000
> @@ -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
> Index: libc/locale/locale.c
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/locale/locale.c,v
> retrieving revision 1.20
> diff -u -p -r1.20 locale.c
> --- libc/locale/locale.c 3 Jun 2009 19:28:22 -0000 1.20
> +++ libc/locale/locale.c 16 Jun 2009 18:03:46 -0000
> @@ -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
>
>
>
More information about the Newlib
mailing list