qt5base-lts/tests/auto/corelib/text
Mårten Nordheim d8d5922f16 QLocal8Bit::convertFromUnicode[win]: handle trailing high surrogate
The win32 API doesn't give us much choice. _Some_ code pages have
support for returning some error if we pass a specific flag, but not
all of them.

Anyway, since the code pages might not support all that UTF-16 provides,
we can't reasonably make it error out on characters that cannot be
converted.

So, the most reasonable thing we can handle is a unpaired high surrogate
at the end of a string, assume that the rest of the string was fine, and
that the low surrogate will be provided in the next call.

Pick-to: 6.6 6.5
Fixes: QTBUG-118185
Task-number: QTBUG-105105
Change-Id: I1f193c9d8e04bec769d885d32440c759d9dff0c2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2023-10-30 21:25:35 +02:00
..
qanystringview QAnyStringView: fix construction from QL1SV for bootstrapped builds 2023-09-03 18:22:06 +02:00
qbytearray QString/QByteArray: add lvalue and rvalue overloads of left/mid/right 2023-10-25 12:01:58 -07:00
qbytearray_large CI: Enable tests under corelib/text for Wasm platform 2023-07-10 14:53:34 +02:00
qbytearrayapisymmetry CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qbytearraylist CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qbytearraymatcher CMake: remove check for cxx11_future 2023-08-02 12:36:18 -07:00
qbytearrayview String-like containers: add implicit conversions towards std:: string views 2023-07-13 16:19:06 +02:00
qbytedatabuffer CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qchar CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qcollator CI: Enable tests under corelib/text for Wasm platform 2023-07-10 14:53:34 +02:00
qlatin1stringmatcher Add static constexpr Boyer-Moore Latin-1 string matcher 2023-09-07 09:38:36 +02:00
qlatin1stringview CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qlocale Use localized time-zone abbreviations or offset 2023-10-27 10:52:48 +02:00
qregularexpression CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qstring QString/QByteArray: add lvalue and rvalue overloads of left/mid/right 2023-10-25 12:01:58 -07:00
qstring_no_cast_from_bytearray CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qstringapisymmetry tst_QStringApiSymmetry: add more invalid UTF-8 sequences 2023-10-06 06:59:02 +02:00
qstringbuilder tst_QStringBuilder: update the warning re:includes in stringbuilder.cpp 2023-09-20 17:16:28 +02:00
qstringconverter QLocal8Bit::convertFromUnicode[win]: handle trailing high surrogate 2023-10-30 21:25:35 +02:00
qstringiterator CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qstringlist QStringList: add lastIndexOf() overloads 2023-10-22 14:37:57 +03:00
qstringmatcher QStringMatcher: add a method that returns a string view of the pattern 2023-10-21 16:50:16 +03:00
qstringtokenizer CI: Enable tests under corelib/text for Wasm platform 2023-07-10 14:53:34 +02:00
qstringview String-like containers: add implicit conversions towards std:: string views 2023-07-13 16:19:06 +02:00
qtextboundaryfinder tst_QTextBoundaryFinder: clean out the last two foreach uses 2023-08-11 19:58:01 +02:00
qunicodetools CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
shared Provide optTitle for a NumberDoubleTestData testcase that needs it 2022-10-11 11:21:38 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00