summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/networkselftest/tst_networkselftest.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@theqtcompany.com>2015-12-16 14:04:27 +0100
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>2015-12-21 09:56:49 +0000
commit1823c8f2ddd0a5c1b4301e7af7109796090a3c9a (patch)
tree7179725508e8ad7a71b5e73ad2e74744b15450d9 /tests/auto/other/networkselftest/tst_networkselftest.cpp
parent0629e879422eae8751973b62ac29a61ca546f78c (diff)
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>
Diffstat (limited to 'tests/auto/other/networkselftest/tst_networkselftest.cpp')
0 files changed, 0 insertions, 0 deletions