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

tst_QDateTime, tst_QTime fail in German locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.9.0 Alpha
    • 5.9.0 Alpha
    • Core: Date/Time
    • None
    • Ubuntu 16.04 LTS, AMD64, GCC7 (self-compiled), Clang 3.8 (from distribution).
    • 3cdf8debd1f8bd9d3ebe598e36b99548db8b6bc7

    Description

      Running tst_QDateTime on German locale fails:

      $ LC_ALL=de_DE@utf8 make -C qtbase/tests/auto/corelib/tools/qdatetime check
      ...
      FAIL!  : tst_QDateTime::fromStringStringFormat(data6) Compared values are not the same
         Actual   (dt)      : Invalid QDateTime
         Expected (expected): 1900/01/01 12:00:00.000[CET]
         Loc: [/home/marc/Qt/qt5/qtbase/tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp(2300)]
      ....
      

      If you pass LC_ALL=C, the test passes.

      Same for tst_qtime:

      FAIL!  : tst_QTime::fromStringFormat(data2) Compared values are not the same
         Actual   (dt)      : Invalid QTime
         Expected (expected): 10:00:00.000
         Loc: [/home/marc/Qt/qt5/qtbase/tests/auto/corelib/tools/qtime/tst_qtime.cpp(556)]
      FAIL!  : tst_QTime::fromStringFormat(data3) Compared values are not the same
         Actual   (dt)      : Invalid QTime
         Expected (expected): 22:00:00.000
         Loc: [/home/marc/Qt/qt5/qtbase/tests/auto/corelib/tools/qtime/tst_qtime.cpp(556)]
      FAIL!  : tst_QTime::fromStringFormat(data8) Compared values are not the same
         Actual   (dt)      : Invalid QTime
         Expected (expected): 22:00:00.000
         Loc: [/home/marc/Qt/qt5/qtbase/tests/auto/corelib/tools/qtime/tst_qtime.cpp(556)]
      PASS   : tst_QTime::fromStringFormat(data9)
      FAIL!  : tst_QTime::fromStringFormat(data10) Compared values are not the same
         Actual   (dt)      : Invalid QTime
         Expected (expected): 14:23:00.000
         Loc: [/home/marc/Qt/qt5/qtbase/tests/auto/corelib/tools/qtime/tst_qtime.cpp(556)]
      FAIL!  : tst_QTime::fromStringFormat(data11) Compared values are not the same
         Actual   (dt)      : Invalid QTime
         Expected (expected): 14:23:00.000
         Loc: [/home/marc/Qt/qt5/qtbase/tests/auto/corelib/tools/qtime/tst_qtime.cpp(556)]
      FAIL!  : tst_QTime::toStringFormat(data3) Compared values are not the same
         Actual   (t.toString( format )): "10:34 vorm."
         Expected (str)                 : "10:34 am"
         Loc: [/home/marc/Qt/qt5/qtbase/tests/auto/corelib/tools/qtime/tst_qtime.cpp(712)]
      FAIL!  : tst_QTime::toStringFormat(data4) Compared values are not the same
         Actual   (t.toString( format )): "10:045 NACHM."
         Expected (str)                 : "10:045 PM"
         Loc: [/home/marc/Qt/qt5/qtbase/tests/auto/corelib/tools/qtime/tst_qtime.cpp(712)]
      

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes