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

QLocale reads country from language.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.12.2
    • Core: Locales (i18n)
    • None
    • Windows 10
    • Windows
    • 21
    • Qt6_Foundation_Sprint 22

    Description

      Even my country is set to Germany, this code snippet returns United States which is Regional Format set in Windows Region&Language Settings. ( English,United States ). But when I change it to (English,Germany) it returns Germany. QtLocale tries to get country from several settings but if the system has a country set,should not it be the highest priority to get country of system ? Country and regional format can be different.  

      qDebug()<<QLocale::countryToString(QLocale::system().country());

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              muhammet.asan Muhammet Ali Asan
              Maurice Kalinowski Maurice Kalinowski
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes