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

QLocale country() tells "AnyCountry" even though country was provided

    XMLWordPrintable

Details

    • 73e7ffb2f (dev)

    Description

      Hi,

      The following snippet: 

        QLocale us(QLocale::AnyLanguage, QLocale::AnyScript, QLocale::UnitedStates);
        qDebug() << us.country();
      

      returns:

      QLocale::Country(AnyCountry)
      

      I would have expected that to return:

      QLocale::Country(UnitedStates)
      

      I know it isn't because of some lookup in the source.. But this does seem to be a little wrong. When one does provide the language as well then the output is as expected (QLocale::Country(UnitedStates)).

      Attachments

        For Gerrit Dashboard: QTBUG-64940
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            markg85 Mark
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes