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

toLocaleString returns incorrect value/NaN for some locales.

    XMLWordPrintable

Details

    Description

      The toLocaleString method returns NaN for some locales.

      Please find the demo app attached.

      The demo app has code to decrement values from 0 on button click.

      in the onClick signal handler, see the use of toLocaleString. 

      When the locale is set to "en_AU" it works fine and the value goes from 0 to -1, -2, -3 ...

      When the locale is set to "hr_HR" it doesn't work as expected the value is set to NaN after 0, -1.

       

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            pmehra Prabhav Mehra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes