qt5base-lts/tests/auto/corelib
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
..
animation QSequentialAnimationGroup: extend bindable property unit tests 2023-09-03 18:20:21 +02:00
global is_virtual_base_of: suppress warnings in the test 2023-09-28 09:40:23 +02:00
io Blacklist tst_QTemporaryDir::QTBUG43352_failedSetPermissions on macOS 14 ARM 2023-10-30 20:25:35 +01:00
ipc IPC: Move the legacy key to the QNativeIpcKey 2023-09-17 18:10:18 -07:00
itemmodels QItemSelectionModel: don't warn when destroying the model 2023-09-22 01:42:45 +02:00
kernel qcore_unix: port qt_safe_poll to QDeadlineTimer 2023-10-24 18:29:45 +03:00
mimetypes QMimeType: simplify implementation of filterString 2023-09-13 23:27:44 +02:00
platform Android: add an appless test that recreates QGuiApplication 2023-10-26 20:04:51 +02:00
plugin QTemporaryFile(Name): don't make the path absolute on generation 2023-10-26 11:36:46 -07:00
serialization wasm: Fix test runner for asynchronous tests 2023-10-26 13:43:39 +02:00
text QLocal8Bit::convertFromUnicode[win]: handle trailing high surrogate 2023-10-30 21:25:35 +02:00
thread wasm: Fix test runner for asynchronous tests 2023-10-26 13:43:39 +02:00
time QDate: make conversion from/to chrono types constexpr and noexcept 2023-10-30 21:25:34 +02:00
tools QSP/QWP: introduce owner_before, owner_equal, owner_hash 2023-10-26 19:24:40 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00