This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix libBrokenLocale


On Thu, Mar 14, 2002 at 07:12:32PM +0100, Jakub Jelinek wrote:
> --- libc/locale/broken_cur_max.c.jj	Mon Jul  9 14:59:13 2001
> +++ libc/locale/broken_cur_max.c	Thu Mar 14 13:04:58 2002
> @@ -44,7 +44,8 @@
>  size_t
>  __ctype_get_mb_cur_max (void)
>  {
> -  size_t correct_value = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MB_CUR_MAX);
> +  union locale_data_value u;
>  
> -  return ((size_t []) { 1, 1, 1, 2, 2, 3, 4 })[correct_value];
> +  u.string = nl_langinfo (LC_CTYPE, _NL_CTYPE_MB_CUR_MAX);

I obviously meant to write:
  u.string = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
here. Sorry.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]