freebsd-skq/lib/libiconv_modules
tijl 7c6ceaed5c Fix decoding of UTF-7 when a base64 encoded chunk appears at the end of
the input buffer.

_citrus_UTF7_mbtoutf16 stored the decoder state at the beginning so it
could restore this state on an incomplete character such that the next
call would restart the decoding.  The problem was that "-" (end of base64
mode) at the end of a string was also treated as an incomplete character
but was also removed from the state buffer.  So the initial state would be
restored (with base64 mode) and the next call would no longer see the "-"
so it continued in base64 mode.

This state saving/restoring isn't needed here.  It's already handled
elsewhere (citrus_iconv_std.c:_citrus_iconv_std_iconv_convert) so just
remove it.

Also initialise *nresult.

PR:		200398
Tested by:	delphij
MFC after:	1 week
2015-05-24 15:27:31 +00:00
..
BIG5 Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
DECHanyu Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
EUC Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
EUCTW Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
GBK2K Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
HZ Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
iconv_none Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
iconv_std Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
ISO2022 Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
JOHAB Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
mapper_646
mapper_none
mapper_parallel Split the last gcc-specific flags off into CFLAGS.gcc. This also 2014-01-05 21:03:49 +00:00
mapper_serial Split the last gcc-specific flags off into CFLAGS.gcc. This also 2014-01-05 21:03:49 +00:00
mapper_std - In the libiconv module for ISO 2022 restore the original order of the 2014-04-01 10:36:11 +00:00
mapper_zone Split the last gcc-specific flags off into CFLAGS.gcc. This also 2014-01-05 21:03:49 +00:00
MSKanji Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
UES Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
UTF7 Fix decoding of UTF-7 when a base64 encoded chunk appears at the end of 2015-05-24 15:27:31 +00:00
UTF8 Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
UTF1632 Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
VIQR Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
ZW Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
Makefile Use Makefile.inc instead of .export. 2013-09-06 10:40:38 +00:00
Makefile.inc Spell NO_PROFILE= as MK_PROFILE=no. 2014-04-25 19:25:26 +00:00