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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.2.0 Beta1
    • Core: Locales (i18n)
    • None
    • Qt 5.2.0 Beta1, OS X 10.9
    • macOS

    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

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes