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

Do byte-amount formatting less wrongly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.0, 5.15
    • Fix Version/s: None
    • Component/s: Core: Locales (i18n)
    • Labels:
      None
    • Platform/s:
      All

      Description

      QLocale::formattedDataSize() naively assumes that we can just use number + space + unit as the format string. This is, of course, not true in all locales - some put the number after the unit, most obviously. CLDR has the right formatting strings to tell us how to do this, but we're throwing that information away when we extract unit names from CLDR. We should, instead, do proper number formatting, just as we do for currencies and other formatted texts.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              Eddy Edward Welbourne
              Reporter:
              Eddy Edward Welbourne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes