diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-07-29 16:59:57 +0200 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-07-31 16:27:10 +0200 |
| commit | 331148d79b34bd4b0863adb5ec4413e0b84654ad (patch) | |
| tree | a77a4fc6dad8b7514cc0defac970706a307742d2 /src/gui/doc/snippets/overview/using-qt-gui.cmake | |
| parent | 1c877f82452ef5e60c369161711d881106b6b87a (diff) | |
tst_QStringApiSymmetry: Pull collation locale from QLocale::system()
Instead of setlocale(LC_COLLATE, nullptr), which doesn't reflect the
system locale on all platforms, e.g. on Darwin.
This is important as we will end up in platform code later on when
doing string comparisons, and that code does reflect the system locale.
A mismatch here would end up failing localeAwareCompare_QString_QString
for C@auml.lt.aring as we would think we had a C locale, when the
system locale was actually en_NO.
Pick-to: 6.10 6.9 6.8 6.5
Done-with: Edward Welbourne <edward.welbourne@qt.io>
Change-Id: I24ed25b355772817d467c1585662d6abc25ff20c
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/overview/using-qt-gui.cmake')
0 files changed, 0 insertions, 0 deletions
