Qt Base (Core, Gui, Widgets, Network, ...)
Go to file
Mårten Nordheim 1090d5dd4a QLocal8Bit::convertToUnicode[win]: split out buffer growing
We will need to potentially grow the buffer before appending anything
to it, because if we pass in 0 as a size then the MultiByteToWideChar
just returns the size we would need. If we didn't intend to do so then
we would increment our output buffers even though nothing is written.

And when appending single characters (like the replacement character
for an invalid sequence) we need to grow the buffer as well.

We'll need this all in the next commit.

Pick-to: 6.7 6.6 6.5
Task-number: QTBUG-105105
Change-Id: I94b9a0f7d18a725da01a47398163e6d0f704eefc
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2024-02-12 19:12:25 +01:00
.github/workflows
LICENSES Update QLocale and calendar data to CLDR v44.1 2024-02-02 08:26:03 +01:00
bin CMake: Don't strip debug builds with qt-cmake-private-install in CI 2023-11-03 18:24:46 +02:00
cmake Add the missing versioned alias for the GlobalConfigPrivate target 2024-02-12 10:29:03 +01:00
coin COIN: Enable setting Debian target distro with env variable 2024-01-31 11:28:42 +00:00
config.tests Remove the mandatory x86-64 features from its feature list 2023-05-31 14:55:37 -07:00
dist
doc Change doc snippet license 2024-02-02 16:52:11 +00:00
examples Android: request POST_NOTIFICATIONS permission for Android Notifier 2024-02-06 17:23:42 +02:00
lib
libexec CMake: Add a config.redo script similar to qt5's config.status 2023-09-20 21:20:13 +02:00
mkspecs Remove QT_READDIR_R macro from qplatformdefs.h 2024-02-06 00:57:17 +02:00
qmake qmake: use [[fallthrough]] 2024-02-12 03:01:48 +00:00
src QLocal8Bit::convertToUnicode[win]: split out buffer growing 2024-02-12 19:12:25 +01:00
tests Un-blacklist tst_QWidget::optimizedResizeMove on macOS 2024-02-12 17:52:58 +01:00
util Unicode line breaking: Implement rules LB15a and LB15b 2024-02-08 17:43:58 +01:00
.cmake.conf Bump version to 6.8.0 2023-12-11 17:35:40 +02:00
.gitattributes
.gitignore Git ignore Visual Studio CMake build directories 2023-11-24 23:42:05 +01:00
.lgtm.yml
.tag
CMakeLists.txt cmake: build repo helpers - fine-grained test/example options 2024-02-08 23:30:29 +08:00
config_help.txt Update config_help.txt with -trace ctf 2023-12-09 12:05:24 +02:00
configure Change configure license 2024-02-02 15:23:02 +00:00
configure.bat Change license of configure.bat file 2024-02-07 12:15:09 +00:00
configure.cmake CMake: Fix Threads global promotion issue when using static openssl 2024-01-22 14:18:09 +01:00
dependencies.yaml
qt_cmdline.cmake Add coverage and coverage-gcov features 2023-09-22 15:54:30 +02:00