[PATCH] Fix newlocale, uselocale, duplocale, is*_l and to*_l

Roland McGrath roland@redhat.com
Sat Aug 31 12:23:00 GMT 2002


> And while we are at it: the various strdups should be collapsed.  The 
> individual memory allocations are rather expensive.  Just collect the 
> sizes of the names while iterating over the locales and allocate one 
> chunk of memory.  The size doesn't have to be exact.  When newlocale is 
> called with base != NULL the memory block can be resized (if necessary).

Ok, will do.



More information about the Libc-hacker mailing list