This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH/RFA] Revamp wctomb/mbtowc conversion, add more charset support
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Corinna Vinschen on 3/24/2009 4:44 AM:
> The simplest method is to have the 32 or 33 ctype tables and just change
> __ctype_ptr to point to the right one. This has an advantage, speed,
> and a disadvantage, size. This method also doesn't work for Cygwin.
But another advantage - when we finally get around to implementing
is_alnum_l and friends, we need multiple tables to be accessible at once,
and dispatch to the correct table according to the locale_t argument.
This seems a lot easier if the tables are distinct than if we are
modifying the single table every time we swap locales.
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknIycsACgkQ84KuGfSFAYCbUwCcCreXwxD73mAaXUyMCTeQwiYL
7ZwAnjsmTcFWfOS1LAQB7b2OGCd8zGuq
=mWE7
-----END PGP SIGNATURE-----