qt5base-lts/tests/auto/corelib/codecs/qtextcodec
Erik Verbruggen 1823c8f2dd Fix utf8->utf16 BOM/ZWNBSP decoding.
When the byte sequence for a BOM occurs in the middle of a utf8 stream,
it is a ZWNBSP.

When a ZWNBSP occurs in the middle of a utf8 character sequence, and the
SIMD conversion does some work (meaning: the length is at least 16
characters long), it would not recognize the fact some charactes were
already decoded. So the conversion would then strip the ZWNBSP out,
thinking it's a BOM.

The non-SIMD conversion did not have this problem: the very first
character conversion would already set the headerdone flag.

Change-Id: I39aacf607e2e068107106254021a8042d164f628
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2015-12-21 09:56:49 +00:00
..
echo Update copyright headers 2015-02-11 06:49:51 +00:00
test don't test Qt::codecForHtml() - build with -no-gui 2013-10-16 17:10:15 +02:00
.gitattributes Moving relevant tests to corelib/codecs 2011-08-26 08:49:59 +02:00
.gitignore Moving relevant tests to corelib/codecs 2011-08-26 08:49:59 +02:00
korean.txt Moving relevant tests to corelib/codecs 2011-08-26 08:49:59 +02:00
QT4-crashtest.txt Moving relevant tests to corelib/codecs 2011-08-26 08:49:59 +02:00
qtextcodec.pro fix usage of wince scope 2015-06-05 10:29:10 +00:00
tst_qtextcodec.cpp Fix utf8->utf16 BOM/ZWNBSP decoding. 2015-12-21 09:56:49 +00:00
utf8.txt Moving relevant tests to corelib/codecs 2011-08-26 08:49:59 +02:00