Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.3, 6.5.0, 6.5.1
-
None
-
74b377313 (dev), fdbddb179 (6.5), 4768fcf83 (dev), 11dc07472 (6.5)
-
Foundation PM Staging
Description
Using Qt 6.4.3 [QtTest library 6.4.3, Qt 6.4.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.0.1 20230318 (Red Hat 13.0.1-0)), fedora 38], the following command:
QLocale(QLocale.Ukrainian).toDouble("0,00000000000000000000000000000123e30")
wrongly returns:
(0.0, False)
while, using Qt 5.15.9, the same command correctly returns:
(1.23, True)
The same issue occurs using Qt 6.5.0 and in addition also simpler strings with the Latin "e" and Latin "E" characters as exponential separator (like "444,46e1", "444,46E1", ) fail to be convert by QLocale(QLocale.Ukrainian).toDouble()
Attachments
Issue Links
- resulted from
-
QTBUG-107801 Not all locales use single-character exponent separator
- Closed
For Gerrit Dashboard: QTBUG-113443 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
476640,4 | Test QLocale's parsing of small fractions with big exponents | dev | qt/qtbase | Status: MERGED | +2 | 0 |
476641,3 | Fix case-sensitivity of exponent separator check in Cyrillic fall-back | dev | qt/qtbase | Status: MERGED | +2 | 0 |
477110,2 | Test QLocale's parsing of small fractions with big exponents | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
477882,4 | Fix case-sensitivity of exponent separator check in Cyrillic fall-back | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |