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

QString::arg(wchar_t{}) prefers the integral overload instead of the QChar one

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7
    • None
    • 5
    • 967736b96 (dev), 9a95c4ba4 (6.8), 88e94df35 (6.7), fe5b07d20 (tqtc/lts-6.5), fafa568a6 (tqtc/lts-6.2), 563ed822f (dev)
    • Foundation Sprint 108, Foundation Sprint 109, Foundation Sprint 110, Foundation Sprint 111, Foundation Sprint 112, Foundation Sprint 113, Foundation Sprint 114, Foundation Sprint 115, Foundation Sprint 116, Foundation Sprint 117, Foundation Sprint 118, Foundation Sprint 119, Foundation Sprint 120, Foundation Sprint 121, Foundation Sprint 122

    Description

      QString fmt = "%1";
      assert(fmt.arg(L' ') == " "); // FAIL: result is "32"
      

      This is similar to QTBUG-125588 (char16_t).

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-126054
          # Subject Branch Project Status CR V

          Activity

            People

              mmutz Marc Mutz
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: