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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes