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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Not Evaluated
    • Resolution: Out of scope
    • 5.15.2
    • None
    • 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

        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:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes