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

QLocale::bcp47Name() not working as expected for "default" language-country combination

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.2.0 Beta1
    • Fix Version/s: None
    • Component/s: Core: Locales (i18n)
    • Labels:
      None
    • Environment:
      Qt 5.2.0 Beta1, OS X 10.9

      Description

      bcp47Name() doesn't print the expected dash-separated string codes when the QLocale::Country is the "default" for a given language. Examples:

      QLocale locale(QLocale::English, QLocale::UnitedStates);
      qDebug() << locale.bcp47Name(); //prints "en"

      QLocale locale(QLocale::English, QLocale::UnitedKingdom);
      qDebug() << locale.bcp47Name(); //prints "en-GB"

      The same happens for all other languages.

        Attachments

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

          Activity

            People

            • Assignee:
              thiago Thiago Macieira
              Reporter:
              panosk Panos
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes