Validate in the decoders so encoders don't have to
authorJeffrey Stedfast <fejj@gnome.org>
Wed, 27 Apr 2011 00:36:46 +0000 (20:36 -0400)
committerJeffrey Stedfast <fejj@gnome.org>
Wed, 27 Apr 2011 00:36:46 +0000 (20:36 -0400)
commit1423512d76f816fd2c483cc228b5c9cc0c1f800d
treef2929b170a8acdcf3a014117feda6fa6169daf9b
parent3ebf299adf3a4f9dbc8d9b5e3c812515d3b5a630
Validate in the decoders so encoders don't have to

Fixed decode_utf32*() to validate their input properly
so that encode_utf16*() and encode_utf8() don't have to.

Was hoping this would improve performance but it doesn't
seem to make much difference. Still, it's worth doing.
eglib/src/giconv.c