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

Costa Rica locale wrong number and currency format

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.7, 5.11.2, 5.12.0
    • 5.9.6
    • Core: Locales (i18n)
    • None
    • Windows, Linux, etc.
    • All
    • 1bf0344b9f41516ef28cd6c047aab801e24ac8df dc7e775c9c6ecc66f76af8139b8dfc3ee101c7ff

    Description

      Greeting every body, Costa Rica Locale format is incorrect, causing number or currency formating to provide wrong output, please try the following code:

      // code placeholder
      
      double MyNumber=2565.25;
      QString ss=QLocale(QLocale::Spanish,QLocale::CostaRica).toCurrencyString(MyNumber);
      qDebug()<<"The formatted currency number is: "<<ss;

      The output shows: The formatted currency number is: ₡2 565
      When should be: The formatted currency number is: ₡2.565,25

      This problem been going on for long long time, I tought may be was because we use Dot as thousand separator and Comma as decimal separator, but that is not the case because if you use: QLocale::Argentina the format shows correctly except for the currency symbol.

      This affect all KDE based applications and desktop!

      Can you please correct it or at least tell me how to fix it ASAP?

      Regards,
                  Luis Murillo.

      Attachments

        For Gerrit Dashboard: QTBUG-70093
        # Subject Branch Project Status CR V

        Activity

          People

            Eddy Edward Welbourne
            alonsomm2016 Luis Alonso Murillo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes