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.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> (cherry picked from commit 8c88a077ccc8350a44fd97fd082dbc328b5dd11f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%