Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-55232

Discrepancy for QString::toInt(), QString::toDouble()'s locale behavior

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.11.2
    • 5.7.0
    • Documentation
    • None
    • db3c1cb230e1f2ca9053590d72ecb22a2582c439

    Description

      From http://doc.qt.io/qt-5/qlocale.html#details:

      QString::toInt(), QString::toDouble(), etc., interpret the string according to the default locale. If this fails, it falls back on the "C" locale.

      From http://doc.qt.io/qt-5/qstring.html#toDouble:

      The string conversion will always happen in the 'C' locale. For locale dependent conversion use QLocale::toDouble()

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aha_1980 André Hartmann
            VersalEszett Julius Bullinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes