[PATCH] Fix newlocale, uselocale, duplocale, is*_l and to*_l
Ulrich Drepper
drepper@redhat.com
Sat Aug 31 12:14:00 GMT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jakub Jelinek wrote:
> strdup of strdup?
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).
- --
- ---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE9cRV92ijCOnn/RHQRAhjUAKDGub9gLgGtYgdK4vTU7HrjLHZgPACfdQ9J
ZpTfX4ALAh50Zy61uhT3v2E=
=/6Qw
-----END PGP SIGNATURE-----
More information about the Libc-hacker
mailing list