diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2025-03-19 11:03:03 +0100 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2025-03-20 19:36:16 +0100 |
| commit | 8c88a077ccc8350a44fd97fd082dbc328b5dd11f (patch) | |
| tree | bcf88affe09555434110e069cf280b96276876b9 /src/network/access/qhttpnetworkrequest.cpp | |
| parent | 2edb56977309daff0e2bb92bb5f64f8e0ac47da9 (diff) | |
QDoubleValidator: don't assume the locale's exponent separator is 'e'
Some locales even have multi-character exponent separators. Scan the
actual locale-appropriate separator to determine whether it contains
any cased characters; if upper, prefer 'E' format, of lower prefer
'e'; but match the case of the input string in any case, when it has
case. Use 'e' when it has no case.
This doesn't currently change any test data, due to the bug that
QLocale::toString(double, 'e',...) uses the locale-appropriate case,
even if that is upper-case, contrary to its own docs. However, fixing
that bug breaks some of the tests of QDoubleValidator without this fix
to prepare for it.
Pick-to: 6.9 6.8 6.5
Task-number: QTBUG-134768
Change-Id: I0ba5bbdb507b8b6efdf6dc134c387fd3b4bcbeb2
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/access/qhttpnetworkrequest.cpp')
0 files changed, 0 insertions, 0 deletions
