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

QLocale::system().monthName(3).simplified() segfaults

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15.15
    • 5.15.17
    • Core: Locales (i18n)
    • None
    • Fedora Linux with Qt 5.15.9 and 6.4.3, respectively.
    • Linux/Wayland, Linux/X11
    • eede42808 (tqtc/lts-5.15)
    • Foundation Sprint 82

    Description

      Testing with identical results on Gentoo Linux with its latest Qt 5.15.x and X11 and on Fedora Linux with Qt 5.15.9 under Wayland: QLocale::system().monthName(3).simplified() segfaults reproducible.

      Example C++ file:

      #include <QLocale>
      #include <QDebug>

      int main(int, char*[]) {
          qWarning() << QLocale::system().monthName(3);
          qWarning() << QLocale::system().monthName(3).trimmed();
          qWarning() << QLocale::system().monthName(3).simplified();
          return 0;
      }

      First two debug outputs (up to and including trimmed) work and print "March". Only last one crashes.

      With Qt 6.4.3 on Fedora Linux, the same C++ program runs fine, prints three times "March".

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            tfischer Thomas Fischer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes