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

[regression] Update to Locale data breaks date/time formatting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 4.7.0
    • 4.7.0
    • Core: Locales (i18n)
    • None

    Description

      Commit f7c9db16be26c0c273ae141a88da80fae44c2304 updated the Qt locale database to CLDR 1.8.0.

      However, a few locales possess codes that are not handled by Qt.

      For example:

          qDebug() << QLocale::system().dateFormat(QLocale::LongFormat)
                   << QLocale::system().timeFormat(QLocale::LongFormat);
      

      With 4.6, that produces the output for the Norwegian locale:

      "dddd d. MMMM yyyy" "'kl'. HH.mm.ss " 
      

      Whereas 4.7 produces:

      "dddd d. MMMM y" "'kl'. HH:mm:ss tttt" 
      

      Which means that a date/time formatting ends up
      "fredag 9. april y" "kl. 15:27:00 CESTCESTCESTCEST"

      QLocale either needs to be updated to support these new formats, or the update to CLDR needs to be reverted.

      Attachments

        Issue Links

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

          Activity

            People

              dzyubenk Denis Dzyubenko (Inactive)
              tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes