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

QLocale::toString( double ) digit separators incorrect for Indian locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • 6.6.0 FF
    • 5.15.14
    • Core: Locales (i18n)
    • None
    • Windows 10
      MSVC 2019
    • macOS, Windows

    Description

          qDebug() << QLocale( QLocale::Hindi, QLocale::India ).toString( 100000 );
          qDebug() << QLocale( QLocale::Hindi, QLocale::India ).toString( 100000.0, 'f' );

      Outputs:

      "1,00,000"
      "100,000.000000"

      It should return:

      "1,00,000"
      "1,00,000.000000"

      It appears QLocale().toString( int ) was fixed in 5.14, but QLocale().toString( double ) wasn't.

      Both are correct in Qt 6.5.1.

      See also:

      https://bugreports.qt.io/browse/QTBUG-24301

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              oryxdigital Andy Brice
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes