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

QLocale.toCurrencyString doesn't return the right value for negative values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.15.2
    • Core: Locales (i18n)
    • None
    • Linux/X11

    Description

      The following code:

      QLocale(QLocale::French).toCurrencyString(-5.12341234, "$", 4)
      

      returns

      (5,1234 $)

      but should return

      -5,1234
      

      In french, negatives values are not written in parenthesis.

      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
              miraks Stéphane MANKOWSKI
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes