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

Unit test for locale fails for some locales on macOS for negative dates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.6.0
    • 6.6
    • Core: Date/Time
    • None
    • macOS
    • e088e01ac (dev)
    • Foundation Sprint 73

    Description

      When running unit test tst_QLocale on macOS on a computer with Norwegian locale the test dateFormat fails. This because the last test checks for (hyphen) U+002d but the generated string uses U+2212 as a negative sign.

      The current implementation gives the following output:

      FAIL!  : tst_QLocale::dateFormat() 'old.contains(u"-1173")' returned FALSE. (1. mai −1173 for locale nb_NO)
         Loc: [/Users/oyheskes/src/qt-doc/qtbase/tests/auto/corelib/text/qlocale/tst_qlocale.cpp(2792)]
      

      Attachments

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

        Activity

          People

            oyheskes Øystein Heskestad
            oyheskes Øystein Heskestad
            Vladimir Minenko Vladimir Minenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes