This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


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] handle multibyte decimalpoint


On Jun 16 11:49, Jeff Johnston wrote:
> Ok to check-in.  It would be nice if the decimal point length was stored  
> somewhere so we
> didn't have to constantly calculate it on every call.

I agree.  In the long run localeconv could return a pointer to a
structure which consists of a struct lconv, plus extra information like
the lengths of its contents.  The extended structure would only be
available locally when building newlib.

However, before we do that, we should make sure that our struct lconv is
extended by the missing members required by SUSv4:

  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;

I'll submit a patch adding these members shortly.


Patch applied.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


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