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

fr_CH is listed twice by QLocale::matchingLocales

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.9.1, 6.10.0 FF
    • 6.6, 6.8.2
    • Core: Locales (i18n)
    • None
    • All
    • 3
    • e323d46cd (dev), 26cda01b2 (6.9)
    • Foundation Sprint 125, Foundation Sprint 126, Foundation Sprint 127

    Description

      Basically, when listing every locales return by QLocale::matchingLocales like this:

      const QList<QLocale> locales = QLocale::matchingLocales(QLocale::AnyLanguage, QLocale::AnyScript, QLocale::AnyTerritory);
      
      qDebug()<<"----------";
      QList<LocaleObject*> toAppend;
      toAppend.reserve(locales.size());
      for(const QLocale &locale : locales)
      {
          if(locale.name()=="fr_CH")
              qDebug()<<locale;
      } 
      qDebug()<<"----------"; 

      It outputs this:

      ---------- 
      QLocale(French, Latin, Switzerland)
      QLocale(French, Latin, Switzerland)
      ----------

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            romain.donze Romain Donzé
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes