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

QLocale & System Digit/Money Grouping Settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.8.6, 5.3.1, 6.5.0 FF
    • Core: Locales (i18n)
    • None
    • Windows 8.1

    Description

      Qt does not respect underlying system's locale settings for digit/money grouping. This setting is present in "Clock, Language and Region" in Control Panel of Windows OS'es. SS is attached.

      In windows you can access this value by LOCALE_SGROUPING using GetLocale* functions.
      Also "struct lconv" provides "grouping" field for accessing this setting. (Probably for unix based systems)

      Current Qt versions only fetch grouping separator field and assume that this setting is "3;0" (or "3\0") by default. I'm currently workaround this bug by calling QLocale::setNumberOptions(numberOptions() | QLocale::OmitGroupSeparator) if grouping setting is "0". But this is nowhere near perfect.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              bdemirkir Berk Demirkir
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes